ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
650 stars 75 forks source link

[All Source games] [Feature request] Add high-dpi scaling #2510

Open FindTheBorealis opened 6 years ago

FindTheBorealis commented 6 years ago

In the October 11, 2017 Steam update scaling was added to the Steam overlay, and in the January 25, 2018 beta update scaling was added to the desktop client if using the Windows 10 2017 curators update or Linux. Since Steam and Source games use the same UI framework, VGUI2, could this be added to Source games?

Michael-Z-Freeman commented 2 years ago

I'll also report this in the SDK issues. I already made a comment about this on another issue but that may be for HL1 source games - https://github.com/ValveSoftware/Source-1-Games/issues/2510

Half Life 2 and episodes as well as Source SDK 2013 mods all scale the in game HUD elements well to 4K (I refer to latest beta versions). The exception is subtitles/messages although that can be fixed by altering the correct ".res" file to show a larger font size. For example see - https://developer.valvesoftware.com/wiki/Modifying_Source_GameUI - I have confirmed by testing it that fonts can in fact be increased in size to be visible on my 4K display. The settings menu does not scale to 4K but could also be fixed although this is a bigger job. It uses VGUI - https://developer.valvesoftware.com/wiki/VGUI_Documentation - There are even "high_def" switches in the resource files to allow different sizes for different displays. I experimented with modding this myself but its quite a big job for someone not familiar with VGUI as an entire menu layout needs adding for 4K (3840x2160). But its obviously possible. So I don't understand why Valve have not updated their games to be fully visible on 4K/High DPI displays. Half Life 2 looks really good in 4K but I suspect most people don't stay with it for very long because the player cannot see Keyboard controls to change or other settings if they try and go into the menu in 4K. It just becomes a massive inconvenience so I usually end up dropping down to 1920x1080. So it would be nice if this classic game were updated for modern displays and new players.

Michael-Z-Freeman commented 2 years ago

Apparently there was already work going on for this, I doubt it was all fixed after me report. I commented over on this other issue ... https://github.com/ValveSoftware/source-sdk-2013/issues/530#issuecomment-102517446 Half-Life 2_2022 01 30-15 52 4