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

Camera2d smoothing sprite position jittering #48130

Open
Kacper-Kondracki opened this issue Apr 23, 2021 · 2 comments
Open

Camera2d smoothing sprite position jittering #48130

Kacper-Kondracki opened this issue Apr 23, 2021 · 2 comments

Comments

@Kacper-Kondracki
Copy link

Godot version: 3.3

OS/device including version: Windows 10 20H2

Issue description:
When the camera2d with the smoothing option enabled is the child of player, the player sprite jitters despite I enabled pixel snap.
This bug occurs in both 2d and viewport rendering mode

Animation

The player sprite should be perfectly aligned with the wall

Steps to reproduce:

  1. Use pixel sprites
  2. Add camera2d as child to player
  3. Enable smoothing
  4. Collide the player with wall and observe

Minimal reproduction project:

Nowy projekt gry2.zip

@Calinou
Copy link
Member

Calinou commented Apr 23, 2021

See #43800. As you can see with the reverted pull requests, solving this is a difficult problem and has been postponed to 3.4 or later. It may be possible to provide a solution on an add-on level until this is fixed in core.

@Wladastic
Copy link

Wladastic commented Jan 8, 2024

I was told in another issue that this can be fixed by just setting the renderer to physical instead of idle.
Works for me.
The framerate just doesn't match the updating process which makes it jump like that.

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

3 participants