dorkster / freeblocks

FreeBlocks is a puzzle game with similar gameplay to Tetris Attack.
GNU General Public License v3.0
30 stars 2 forks source link

Use easing functions for animation #40

Closed cxong closed 9 years ago

cxong commented 9 years ago

Double FPS

easing

dorkster commented 9 years ago

Thanks! 60 fps is always good. Though I may add a frame-limiter option for people the want to save battery on portable devices (GCW-Zero, Android, etc).

cxong commented 9 years ago

I think a better power-saving approach is to look at whether we can avoid updates when nothing has changed, e.g. a dirty flag for searching for matches which is only cleared when the player performs a switch. In addition we can prevent draws if no animation is taking place, although for most games that's more trouble than it's worth. In any case we should profile first, I know that Xcode has CPU usage diagnostics so I can try that.