Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random stutter with ga.worldCamera #84

Open
JulienCandy opened this issue Jul 10, 2024 · 0 comments
Open

Random stutter with ga.worldCamera #84

JulienCandy opened this issue Jul 10, 2024 · 0 comments

Comments

@JulienCandy
Copy link

JulienCandy commented 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

@JulienCandy JulienCandy changed the title Random stutter with basic setup player/level Random stutter with ga.worldCamera Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant