PixelArt resolution artefacts with Integer scaling

Godot Version

4.4.1.stable

Question

After setting up my Project Display Settings to force Integer scaling, I experimented with different screen resolutions to find the one that matches the Project best. I tried out 480x270 and everything seemed to look fine both scaled and unscaled. When trying out 256x224 though, some sort of pixel stretching happened to the cursor’s sprite while slowly moving it, but only when the window was maximized.

The following YouTube video showcases this (while comparing both tested resolutions):

I would like to understand what is causing this, and fix it if possible, since the 256x224 resolution is the one I would like to keep for this Project. Thank you!

Resources

Screenshots of the Project’s Display Settings:


This might be the answer to your question:

Thank you for sharing this!

Unfortunately, I tried the approach proposed in the shared post and the artefacts persisted. They happen when the resolutions are even too…

After some more tests, the artefacts appear in other circumstances aside from when the window is maximized:

  • When the screen’s resolution is its native one (256x224), no artefacts happen.
  • When the screen’s resolution is its native one (256x224), and it is maximized, artefacts appear.
  • When the screen’s resolution is double its native one (512x448), and Stretch Scale is set to 2, artefacts happen.
  • When the screen’s resolution is triple its native one (768x672), and Stretch Scale is set to 3, no artefacts appear.
  • When the screen’s resolution is quadruple its native one (1024x896), and Stretch Scale is set to 4, artefacts happen.

This may in fact be a bug. I recommend you log a bug and create project that reproduces just this bug.

Instructions for logging a bug:

Where you log the bug:

One of two things will happen: A developer will respond and tell you it’s not a bug and tell you how to fix the problem. Or, it will be confirmed as a bug and fixed in a later release.

1 Like

This was solved in Pixel artefacts on specific integer screen scalings · Issue #105879 · godotengine/godot · GitHub!

1 Like