derclou
derclou copied to clipboard
Implement integrer scaling with anti-aliasing
By default, the game is up-scaled with "linear" filter, which looks blurry. Changing it to "nearest" is causing the pixels to have variable non-square width/height. To solve this, the game should apply up-scaling in two steps:
- Upscale with whole numbers using "nearest" (320x200 --> 1920x1200), then
- Downscale to target size with anti-aliasing, i.e. "linear" (1728x1080)
So this is how it would look like at the end:

I've discussed this on SDL forums with a proposed solution mentioned, but it's more complex than I anticipated.
I can confirm this issue in my WebPort of the game https://theclou.netlify.app/
edit: I introduced the fix proposed by @myself600 in my fork.