Hi everyone, I spent my last days trying to optimize my game for mobile (already read all performances tips). The game is a simple horizontal runner game, with one long layout (500*100,000 pixels). I use cocoonjs 1.3 to export it on mobile.
What is strange is that i achieve a 60-62 fps on my Galaxy Note 2, about the same rate on my desktop PC, but the sprites and background on mobile are not scrolling smoothly like on my desktop.
It's like every second there is a micro-freeze or lag of the sprites or tiles elements. The FPS is not really dropping when it occurs, it stays at 58-62. The feel is better on Iphone 5 though, but on android even with high FPS the scroll is not smooth.
Is the issue on CocoonJS wrapper? Somebody else experience such thing ?
I don't use any effect, I tried to disable some behaviours, use tiny sprites, I haven't found the cause.
For scrolling I use :
* EveryTick > System : set scroll X to player.X + 150
* player have a bullet behaviour with a speed of 300.