How to properly use a lower resolution in Unity?

Hello,

The issue I am having is that every time I try to run a Unity build (standalone), at a lower resolution, the resolution does not actually change. Instead I end up with black borders all around the game filling in the difference between the actual resolution and the game resolution. You can see what I mean by looking at the above image where my Desktop resolution is set to 1600/900 and I am trying to run the game at 1024/768.

I suppose what I am wanting is for the game window to “scale” to actually fill the screen, in the manner that games have been able to do for like 15 years…

I appreciate any assistance, thank you.

If your problem is the same as mine, then it is your graphics driver doing it, not Unity. I have this problem too now that I upgraded my graphics driver. Before, games like Watch Dogs, GTA 5, etc, would be proper fullscreen with no borders even if I chose to run them at lower resolution than my 1080p monitor. But with my new graphics driver they do the same thing you describe.

I can take the same game and run it on a different PC and not have the problem.

I appreciate the reply, but I have tested this with 3 PCs, and have used integrated graphics, or Nvidia card, and no matter what I still get the same issue… And if this is a common issue then it kind of scares me to think of someone playing my game on a lower resolution, as it looks stupid with black borders all around it…

@
It may very well be a bug that’s fixed in the most recent version of 5.2 (and most recent 5.3 beta iirc), it screwed displaying any non-native resolution in DX11 with weird letterboxing (default if available), even if said resolution has the same aspect ratio.

I hope it’s this, but I’m not sure as this bug caused some more obvious issues (part of screen clipping out of vision, sometimes more letterbox left than right, varies with all resolutions).

Just a thought - but running at a lower resolution IS actually changing the desktop resolution. You should see some flickering, crackling and smoke emit from the vents at the side of your monitor when this happens.

That’s a joke - but the point being - running Unity games at lower resolution, means telling the OS and graphic drivers to change the resolution - then start running Unity things. No?

@KristianDoyle
The OS probably changes desktop resolution for the monitor if it’s fullscreen. I think that the graphics driver will simply send the lower res image to the display, together with a position on the screen and the desired size. That’s where the letterbox options from the driver go in.

I think my current game is set to fullscreen windowed, which I think means that the desktop resolution doesn’t change and unity is upscaling and letterboxing itself. So it changes resolutions near-instantly, not allowing my monitor to boot up it’s steam engine.

About the bug though - it’s somewhere in the initialization of the DX11 device, messing up the position/size of the image to display, causing all kinds of wrong upscaling/letterboxing.

Well it is good to hear that this does appear to be a bug. I will continue to test in the future, and hopefully it will be resolved soon.

FYI, I am running 5.2.0f3 Pro, and I have only tested the resolution issue on PC’s.