I've assembled a basic setup for a platformer game:
A map made of a tileset.
A player sprite with walk animations.
I can move the player left/right with the keyboard.
FPS is set at 60 for the "world", 12 for the player.
Camera follows the player.
No other moving object.
No set collisions.
Just by moving left/right, I get some random stuttering eventhough the FPS doesnt seem to drop (I've added a debug showing the FPS on screen).
No stuttering if the camera is fixed, so I assume it comes from the
ga.worldCamera
in plugins.js
Whats going on with that function that makes it perform so poorly?
I've assembled a basic setup for a platformer game:
A map made of a tileset. A player sprite with walk animations. I can move the player left/right with the keyboard. FPS is set at 60 for the "world", 12 for the player. Camera follows the player. No other moving object. No set collisions.
Just by moving left/right, I get some random stuttering eventhough the FPS doesnt seem to drop (I've added a debug showing the FPS on screen).
No stuttering if the camera is fixed, so I assume it comes from the
ga.worldCamera
in plugins.jsWhats going on with that function that makes it perform so poorly?
Thanks