system
August 5, 2020, 1:14am
1
Attention
Topic was automatically imported from the old Question2Answer platform.
Asked By
dickdanieljr
How do I remove this render jitter?
Here is the source: https://github.com/uheartbeast/youtube-tutorials/tree/master/Action%20RPG (uses the same camera)
I think it might be related to this.
opened 12:54AM - 27 Jan 20 UTC
closed 05:25PM - 16 Nov 20 UTC
bug
topic:rendering
confirmed
topic:2d
**Godot version:**
3.1.2 stable, GitHub master (3.2), Vulkan branch (4.0)
**… OS/device including version:**
Windows 10 x64 v1909
**Issue description:**
Pretty much as soon as I made my test level larger than a single screen, I noticed something was off. After a bit of testing, I've found out what it is. It seems like any time the camera moves, there is some sort of inconsistency in the positions sprites are being rendered at, causing them to "jitter" back and forth by one pixel even though the camera is only moving in one direction.
Example gifs showing the issue:
![A5aCVeO](https://user-images.githubusercontent.com/4687674/73144517-c447a580-40a6-11ea-8bf2-8c0b32d006d3.gif)
![EhPwu5N](https://user-images.githubusercontent.com/4687674/73144521-cb6eb380-40a6-11ea-81e5-e41ef9bde8b5.gif)
How noticeable it is depends on circumstances. Generally, from what I've found, it's most noticeable if you have camera smoothing turned on and the smoothing speed set to a very low value, but the problem isn't related to the camera smoothing. It's also present with camera smoothing turned off, just harder to notice.
In case it was a bug that had already been fixed, I tried compiling Godot myself from both the master (presumably what will become 3.2) and vulkan (4.0?) branches to try them out, but unfortunately the problem still seems to be present in both of those. It looks a bit different in the Vulkan branch, due to what I assume is some sort of smoothing/blur filter being applied (there may be a way to turn that off, but I couldn't find it) to the background, but it is definitely still there.
**Steps to reproduce:**
1. Start minimal reproduction project
2. Run far enough to the right that the camera starts scrolling and stop.
3. Watch the vertical lines of the background brick wall or the ground near the player to see the sprite jittering back and forth by one pixel until the camera fully stops
**Minimal reproduction project:**
[godot-jitter-repro-project.zip](https://github.com/godotengine/godot/files/4115122/godot-jitter-repro-project.zip)
But the solutions from there and other questions on here don’t work or only for one debugging session (e.g. enabling pixel snap, disabling vsync, disabling hdr, disable/enabling smoothing, changing process mode)
maybe don’t move character if there’s no room to move?
Favkis | 2020-08-05 07:16
The issue is not related to having no room to move. I just chose this particular position to showcase the bug.
dickdanieljr | 2020-08-05 15:58