Facepunch / garrysmod-issues

Garry's Mod issue tracker
147 stars 56 forks source link

Base game UI is tiny on high DPI monitors #5123

Open Gravy59 opened 2 years ago

Gravy59 commented 2 years ago

Details

I have a 2560x1600 display, and when I set Garry's Mod to my native resolution the UI is extremely small and difficult to use. I can make it larger by lowering the resolution, but I shouldn't have to do that. I understand if Source cannot handle DPI Scaling, but there has to be a way to fix this

Steps to reproduce

  1. Have a monitor of a resolution larger than 1920x1080 (e.g. 2560x1440)
  2. Launch Garry's Mod
  3. Load a map
  4. Open the spawn menu
  5. Press your face against the screen to try and read the small text

Images:

image image

VCSoldier commented 2 years ago

this is an issue with source, not gmod, same thing happens in anything that isnt csgo

A1steaksa commented 9 months ago

This would be immensely useful for me. I have a 4K monitor and the only way to use it for Garry's Mod is to put the game in fullscreen mode which causes lengthy delays when alt-tabbing to edit lua scripts, which significantly reduces how useful hot reloads are. In my case, Windows deals with the changes from game resolution to desktop resolution by consolidating all of my open windows onto a single monitor after freezing for 5-10 seconds.

Alternatively, I can try to run the game in borderless or windowed mode at something like 1080p, but in those cases the game window does not stretch to fill the screen and I'm still unable to clearly read the interface.

Third party window-scalers are largely unhelpful as they introduce a significant amount of both input delay and frame pacing problems that make actually playing the game annoying and unpleasant.

A lack of UI scaling is making Garry's Mod actively harder to develop for and worse to play. This is, from my perspective, a problem severe enough issue to warrant a pretty significant time investment to fix. Or, perhaps, an interim solution could be created to ease the worst of the problems by applying some user-configurable scalar to draw calls to scale them without the interface code's knowledge.

GrayWolf64 commented 5 months ago

I have the same issue on a 2880x1800 display, desperately looking for a fix!

GSUser43 commented 2 months ago

Since the topic that I made was duplicate, I'll copy its summary here:

Suggestions:

  1. Give us either of the following options; "big" size like what it is at 720p, "normal" size (the default setting for everyone when they launch Gmod) like what it is at 1080p, and "small" size like what it is at 1440p (don't even consider the size at 4K, it's just unbearable for a game like Gmod where you constantly navigate through the menus to spawn things, change the tool gun and stuff). OR, a custom slider that adjusts the menus, HUD & UI sizes. Either a custom slider or the 3 options (big, normal and small) that scales correctly regardless of the currently selected screen resolution.

  2. Separate size options for each of the menus, HUD and UI.

Some screenshots for comparison (it took me quite a while to switch between every resolution and taking screenshots at almost the same point and renaming the files in their respective orders) so that hopefully Facepunch could see that it's a really big problem for UHD monitor users:

"big" sizes (720p):

1  Maps 1280x720 2  Loading Screen 1280x720 3  Menus 1280x720 4  HUD 1280x720 5  Context Menu 1280x720 6  Playermodel Selector 1280x720 7  Spawn Menu 1280x720 8  Addons 1280x720 9  Addons Last Page 1280x720

"normal" sizes (1080p):

1  Maps 1920x1080 2  Loading Screen 1920x1080 3  Menus 1920x1080 4  HUD 1920x1080 5  Context Menu 1920x1080 6  Playermodel Selector 1920x1080 7  Spawn Menu 1920x1080 8  Addons 1920x1080 9  Addons Last Page  1920x1080

"small" sizes (1440p):

1  Maps 2560x1440 2  Loading Screen 2560x1440 3  Menus 2560x1440 4  HUD 2560x1440 5  Context Menu 2560x1440 6  Playermodel Selector 2560x1440 7  Spawn Menu 2560x1440 8  Addons 2560x1440 9  Addons Last Page 2560x1440

The extremely small sizes at 4K and why such option shouldn't exist:

1  Maps 3840x2160 2  Loading Screen 3840x2160 3  Menus 3840x2160 4  HUD 3840X2160 5  Context Menu 3840x2160 6  Playermodel Selector 3840x2160 7  Spawn Menu 3840x2160 8  Addons 3840x2160 9  Addons Last Page 3840x2160

FYI, I'm using the "BF Hud" addon not only because I like it, and also not only because it unfortunately doesn't scale well (it even unfortunately has worse scaling than the default HL2 HUD, the latter only has the text in it not scaling, while the other has the entire HUD not scaling), but also because I wanted to demonstrate how the HUD shrinks at UHD resolutions.

In case you're interested in it, you can find it in the Steam Workshop here (keep in mind that you have to enter the gzg_vignette 0 command each time you load a map to disable the vignette):

https://steamcommunity.com/sharedfiles/filedetails/?id=125867420

(I can also tell you the playermodels that I have in case you're interested in them).

Also, just in case you haven't noticed and maybe it's worth pointing out; the last screenshot in each of the respective size/resolution section that is the last page of my subscribed addons, only 720p has the last page of the addons being up to 65, every other size/resolution has the last page being up to 27 due to the former's big interface size (the arrows and dots to change the page get smaller the higher the resolution gets though).