Monday, May 16, 2011

Asteroid Belt Live Wallpaper v1.3

  - Update: Better framerate, especially high-res devices
  - Update: Better calendar updating (for planet movement)
  - Update: Higher res icon/thumbnail art

None of these are earth-shattering updates for most users, but you should find the framerate generally improved now.  It's always been fine on phones, but we were definitely suffering on devices like the Xoom and this updates shores that up quite a bit.  The phones getting a bit faster is a nice bonus.  :)

In addition, I noticed we really were seeing more garbage collection than we should be.  Investigating this, it comes down to updating our Calendar instance too often.  You see, the planets orbit based on the current time of day, and I had them checking every five seconds.  Each planet was doing its own update however, so the net result was a fair amount of calendar traffic.  What I'm doing now is having them all call to a central point, which updates its calendar every 2.5 seconds.  So we get updates twice as often with a fraction of the garbage being created.

Calendar updating is surprisingly expensive, and this isn't the first time it's caught me.

No comments:

Post a Comment