My apps a little 'jerky'/ 'jumpy' at times

Hey,

I seem to be getting an issue with my game that despite having an average fps of 29 it still seems to jump a little here and there?

Any thoughts on what could be causing this as I find this problem to be very worrying and have no idea what the problem could be?

Thanks very much

A common cause is garbage collection. Apparently this is often caused by Instantiating then Destroying objects regularly.

Using strings can also cause the GC to kick in.

I do a lot of this in my game - the user has to collect objects of different types then deposit them before time runs out.

What would be the best way to handle gabage collection in this case?

Smag:

What do you mean?

If you use strings, concat strings, etc, you make new objects. Those pile up, and the GC kicks in.

As for collecting things, one approach is to have as much things in memory at startup as possible, and instead if removing them, you simple disable them instead if destroying them. That way the won’t be garbage collected.