-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Camera2D with smoothing enabled has intermittent position 'jumps' #68394
Comments
This is expected due to the lack of physics interpolation. The camera is smoothed in process, but the character is moved in physics process. Use https://github.com/lawnjelly/smoothing-addon/tree/4.x to resolve this until physics interpolation is added to core (and in 2D). Alternatively, set the Camera2D's update mode to Physics, but this will look less smooth on high refresh rate monitors and will cause jittering to occur if there are FPS drops below the physics update rate (60 by default). Movie Maker mode hides this issue by making the process rate the exact same as the physics FPS. |
Thank you for the explanation, that makes sense. Should I close this issue? |
Yes 🙂 |
I have this issue in Godot v4.0.3 Godot version |
Having the same issue over here, using Godot v4.0.3.stable.official [5222a99]. Just in case it's useful for me to report it as well. |
Godot version
v4.0.beta4.official [e675154]
System information
Linux (Pop OS), NVIDIA GeForce RTX 2060, Video Drive v 470.141.03
Issue description
When I have the current
Camera2D
as the child of aCharacterBody2D
, with smoothing enabled, the camera appears to jerk noticeably while moving.Enabling 'Movie Maker Mode' appears to clear up the issue, as well as turning smoothing off on the
Camera2D
node.The jumps appear to be proportional to the amount of smoothing enabled, so smaller smoothing speeds cause smaller shifts.
Steps to reproduce
CharacterBody2D
with the default scriptCamera2D
as the child of theCharacterBody2D
current
position smoothing
on the camera totrue
position smoothing speed
on the camera to a sufficiently high value (say, 50px/sec)That's enough to reproduce, just having the character falling will show the jitter.
It also jitters on regular side to side / and jumping movement.
Minimal reproduction project
Smooth Camera Jitter Repro.zip
This has a small platform set up, and the camera smoothing set to 50px/sec.
It also has a small sample video of the behavior.
The text was updated successfully, but these errors were encountered: