ValveSoftware / csgo-osx-linux

Counter-Strike: Global Offensive
http://counter-strike.net
781 stars 69 forks source link

scaling & aspect ratio #69

Open RM0cRu opened 10 years ago

RM0cRu commented 10 years ago

Hello,

I have troubles with resolution scaling in linux source engine games (e. g. CSGO)

Goldsource games (HL1) work well. A low 4:3 resolution is stretched when using fullscreen mode and goes to a "black bars on the sides scenario" when I enable the "keep aspect ratio" modus at my monitor.

In CSGO, the aspect setting on my monitor is greyed out and I cannot scale the game to full height at a maintained 4:3 aspect ratio. For me, the only way to achieve this in CSGO is setting up the desktop in the desired resolution/scaling before actually starting the game - which is not the way it should be.


Debian Jessie X.Org 2:1.16.0.901-1 Mesa 10.2.6 ATI HD 7850

Bucky21659 commented 10 years ago

Does your monitor scale the picture the same way when you set your desktop resolution to what you prefer to set in GoldSrc?

Could you provide a screenshot of the aspect ratio field being greyed out? (I have only seen what I think you are describing when the game is set to 'fullscreen windowed' mode)

RM0cRu commented 10 years ago

If I set my desktop resolution to e. g. 800x600 pixel while my monitor is set to "aspect", my desktop is stretched over the full vertical monitor dimension and the horizontal desktop length satisfies the aspect ratio 4:3 (which results in black bars on the sides). This is the same in Goldsource games (my preferred behaviour).

In Source engine games the "aspect" option of my monitor OSD is greyed out (meaning I can't select it in the on screen display of the monitor) and the game is stretched over the full screen (no black bars).

Obviously, I use the "fullscreen" option in both games.

PS: Using Windows 8 (same PC) the monitor aspect setting is working in both games/engines.

Bucky21659 commented 10 years ago

Is the 'aspect' option still greyed out when you set your desktop resolution to 800x600 before starting the game?

It seems to me that this is happening because Source games scale to the desktop res (if it's not set to native), as opposed to just changing the OS' resolution. I personally prefer this because when other games crash, they usually fail to set the desktop resolution back to where it was (i.e. when the game crashes there's a chance I'll be stuck at the desktop in 640x480). It also makes the text in the in-game overlay readable at any res, and is much more stable when alt+tabbing.

RM0cRu commented 10 years ago

If I set my desktop to 800x600 (with black bars) and start CSGO afterwards, it works (stays the same).

Thanks for the tip.

Tele42 commented 8 years ago

While CS:GO can be switched between 4:3, 16:9, and 16:10, the resolution is stretched to the SDL window size, aspect ratio is only maintained in windowed mode.

shoober420 commented 4 years ago

Please consider adding a “-keepaspect” or “-blackbars” launch option for CSGO and other Source games.

aequabit commented 3 years ago

Any update on this? Would really like to see an option i.e. via a launch option, so the resolution doesn't have to be changed system-wide.

One reason for this besides convenience was already mentioned by @Bucky21659:

It also makes the text in the in-game overlay readable at any res, and is much more stable when alt+tabbing.

So an in-engine option that respects aspect ratio while in fullscreen mode would really be the optimal solution.

holyjoespb commented 1 year ago

Hi CS2. Please add a option for 4:3 with black bars. shot0074

aequabit commented 1 year ago

Replying to https://github.com/ValveSoftware/csgo-osx-linux/issues/69#issuecomment-1741294755

Nice Minecraft texture pack, where can I get that?