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

[texture] background scrolling feels shaky / shaking #4625

Open
gengjun opened this issue Dec 20, 2024 · 1 comment
Open

[texture] background scrolling feels shaky / shaking #4625

gengjun opened this issue Dec 20, 2024 · 1 comment

Comments

@gengjun
Copy link

gengjun commented Dec 20, 2024

When scrolling the background with the method in this example
https://www.raylib.com/examples/textures/loader.html?name=textures_background_scrolling

if you stare at the slow moving background in the back, you will see its shaky. once you noticed it, it's hard to unseen it. I think this is probably due to floating point rounding to integer and we can only shift the background by integers. This is also why fast moving background looks less shaking. I wonder if you have any suggestions on how to eliminate this issue ? (i need to scroll some backgrounds slowly).

@veins1
Copy link
Contributor

veins1 commented Dec 20, 2024

This is a good starting place: https://jorenjoestar.github.io/post/pixel_art_filtering/
A better place to ask about these kind of things is raylib discord. Github issues are for a different purpose.

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

No branches or pull requests

2 participants