Sunday, January 10, 2010

Space physics for android

This is a fun 2D Physics game but not comparable to the fun I used to have with Cryon Physics on my previous IPhone.   I believe developers have issues with memory management with this type of game as the more objects you create the slower the game will perform.

IPhone 2D Physics engine is written in C++ and memory management although vulnerable to memory leaks is still better managed than Dalvik VM's garbage collection on an android device.

2 comments:

  1. Space Physics 2D uses a so called NDK port of Box2D, i.e. that part of the game runs natively in C.

    The garbage collection is pretty slow on Android, true, but there are ways to defend against it with some basic programming tricks.

    ReplyDelete
  2. I totally agree Michiel. I am sure Space Physics will run comfortably on the new devices with more cpu and memory which I believe will compensate for android not running native C applications. Only time will tell. And yes I agree garbage collection will always be an inherited problem that stays with us in the future.

    ReplyDelete