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
The SmoothCamera extensions seems to have issues when the game is running at 120fps.
The camera is shaking a bit, causing the tracked object to be blurry.
The issue totally disappear when running at 60 fps.
The gif can't run fast enough but we can still see the spaceship shaking at each frame.
This is my extension settings :
And this is the only line I use to move my camera :
To note :
My screen is 144Hz, the game says it's running at 120fps.
I have a second screen which is 60Hz. The issue disappear when I move the game window onto it but the game is still saying that it's running at 120fps.
Steps to reproduce
Setup a SmoothCamera behaviour on an object
Make the object translate fast enough
Run the game on a 120+ fps screen without maximum fps limitation
GDevelop platform
Desktop
GDevelop version
5.5.228
Platform info
OS (e.g. Windows, Linux, macOS, Android, iOS)
Windows
OS Version (e.g. Windows 10, macOS 10.15)
Windows 11, same issue on Windows 10
Additional context
No response
The text was updated successfully, but these errors were encountered:
The 2D physics behavior runs at a maximum of 60fps for reproducibility reason (I’m not saying it’s a good choice or not). So at 120 fps, the world move once every 2 frames whereas the camera moves every frame. This why the spaceship appears to shake.
In short, it’s not an issue of the smooth camera, it’s an issue in the 2D physics. As a workaround, you can limit the game at 60 fps since physics won’t run at more than 60 fps anyway.
Alright that make sense.
I'm sorry the only hint I used the physic engine was the code line screenshot!
I remember an action that ask the physic engine to update on demand but I can't find it.
So I guess I can interpolate the position of the camera target between physics updates, I'll see how it goes.
Thank you for your answer!
Is there an existing issue for this?
Enter the name of the extension
SmoothCamera
Describe the bug of the extension
The SmoothCamera extensions seems to have issues when the game is running at 120fps.
The camera is shaking a bit, causing the tracked object to be blurry.
The issue totally disappear when running at 60 fps.
The gif can't run fast enough but we can still see the spaceship shaking at each frame.
This is my extension settings :
And this is the only line I use to move my camera :
To note :
Steps to reproduce
GDevelop platform
Desktop
GDevelop version
5.5.228
Platform info
OS (e.g. Windows, Linux, macOS, Android, iOS)
OS Version (e.g. Windows 10, macOS 10.15)
Additional context
No response
The text was updated successfully, but these errors were encountered: