You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
Thanks
The text was updated successfully, but these errors were encountered:
JulienCandy
changed the title
Random stutter with basic setup player/level
Random stutter with ga.worldCamera
Jul 10, 2024
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?
Thanks
The text was updated successfully, but these errors were encountered: