First, this slow down i'm seeing is only on iPod Touch 2G. But yea I know iPod Touch 2G is a bit dated
, but I thought I use that as my benchmark.
So obviously I'm tapping on my device and triggering the FSM super fast.
The problem is my game involves you tapping to keep your character up in the air. If you hold down longer you gain more acceleration, but at some points of the game you want to tap, or tap multiple times to do small bursts of acceleration to avoid obstacles.
So the problem is when I'm tapping in succession you can feel a slight slowdown. In profiler on my mac, PM is always around 10-20%. Though I've seen a spike on GC.Collect spike up to 82.5%. I read there is a fix coming for the GC.
Anyways I know what my problem is but I can't seem to find a solution to work my state machines to make them more efficient.
Just seeing if anyone has some suggestions.
BTW it works fine on iPod Touch 4G.