Pixel Perfect Fullscreen Issue

Godot Version

4.2

Question

I’m trying to get the content of this screen to fit vertically while keeping the pixel perfect integer scaling, but for some reason the game doesn’t want to scale all the way up. As you can see there is more width and height the viewport could take up, can I fix this somehow?

It works perfectly when I’m using a 16:9 scale but 4:3 is an issue.

Here are my settings:


Sorry, the image didn’t upload correctly, here it is.

You are using integer scale mode. If the viewport was taller, then there would no longer be a whole number ratio of original pixels to final pixels displayed, and you would get some pixels that are larger than others. If you want to have the viewport take up the entire screen, you need to turn off integer scale mode.

So there is no way to keep using integer scale mode and also support 4:3 resolutions?

The maximum integer scale for a 320×240 viewport you can achieve on a 1920×1040 window is 4×. It’s also 4× for 1920×1080 fullscreen either way :slight_smile:

If you want a base resolution that scales well to lots of modern screen resolutions, try 480×360 (4:3) or 640×360 (16:9). The height of 360 pixels scales perfectly to 720p, 1080p, 1440p and 4K.