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

Camera Smoothing causes jittering in Player again #86634

Closed
Wladastic opened this issue Dec 30, 2023 · 1 comment
Closed

Camera Smoothing causes jittering in Player again #86634

Wladastic opened this issue Dec 30, 2023 · 1 comment

Comments

@Wladastic
Copy link

Wladastic commented Dec 30, 2023

Tested versions

  • Reproducable in 4.2

System information

Windows 10, Mac OS 14.2 Godot 4.2.stable.official

Issue description

Issue was already fixed in Godot 3.x but reappeared:
#43800

It is essentially the same issue as before, when moving the player and having camera Position Smoothing enabled, it jitters the whole screen when following the Player.

Steps to reproduce

Camera on 1920x1080,
Stretch: Viewport, keep_height, scale: 1.0, scale mode: fractional

Character Body 2D for Player with AnimatedSprite2D and AnimationPlayer/AnimationTree.
When I move slow around 150 velocity it is fine, when above 400, then it appears like the Character body is jittering back and forth.

Minimal reproduction project (MRP)

Will look for some youtube videos where this was also mentioned (recent video of around 4 weeks ago)

@Calinou
Copy link
Member

Calinou commented Jan 1, 2024

This will occur if your monitor's refresh rate or FPS cap differs from the physics FPS defined in the Project Settings. As a workaround, set the Camera2D's process callback property to Physics instead of Idle. A proper solution is to use physics interpolation, which hasn't been implemented in 4.x yet (and not in 2D yet either). Use https://github.com/lawnjelly/smoothing-addon/tree/4.x in the meantime.

Also note that #84137 can make this issue more noticeable, even if workarounds or physics interpolation are used.

Closing in favor of godotengine/godot-proposals#6389 and other related issues, as there are many open issues on the subject already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants