Hello together,
I’m experiencing a weird behavior on my Android device (Samsung Galaxy S24 Ultra). IOS needs to be tested, but i never had this problem before in several playcanvas / web-app projects.
I created a side-scroller project where the tiles are moving continuously. On mobile, I noticed that when I’m not touching the screen, the game runs at 60 FPS. As soon as I interact with the screen (jumping, sliding, UI interaction, etc.), it immediately jumps to 120 FPS.
These FPS changes cause noticeable hiccups/stuttering in the tile movement, which feels really bad during gameplay.
From what I’ve read, this might be related to how the browser handles touch input and refresh rates on mobile devices, but I couldn’t find a proper solution yet.
Things I already tried:
-
setting the device pixel ratio
-
creating a fixed update / fixed timestep movement system
-
avoiding direct
dt-based tile movement calculations
Unfortunately, none of these solved the issue.
So now I’m wondering:
-
Is this behavior caused by recent Android/browser updates?
-
Is this a known issue on high refresh rate mobile devices?
-
Is there any reliable way to force a stable refresh rate or avoid these FPS jumps in PlayCanvas/browser games?
Thanks for any ideas or suggestions!