ValveSoftware / csgo-osx-linux

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

Broken view in menu on Linux #2429

Open murbanowicz opened 4 years ago

murbanowicz commented 4 years ago

Screenshot from 2020-05-08 13-47-08 Screenshot from 2020-05-08 13-40-53

As visible on the screenshots, the menu view is broken and it is misaligned with the mouse which is really strange. It makes it impossible to play on Ubuntu. It is strange as the sidebars look ok.

System: Ubuntu 20.04 nVidia drivers ultra widescreen: 5120x1440

gitt0r commented 4 years ago

Same resolution, same issues. Thanks for reporting murbanowicz, thought i'm the only having these issues. Arch Linux Kernel: 5.7.0-1 AMD Open Source driver Ultra Widescreen: 5120x1440

Windowed mode is possible but that's no real solution.

murbanowicz commented 4 years ago

The current workaround is: triple_monitor_mode 1 in console. UI is a bit worse but game is working and you can get used to it, however IT STILL SHOULD BE FIXED. I see it is probably caused by CSGO on Linux not being able to recognize different screen ratio.

k3d3 commented 4 years ago

I'm having the same issue as well.

Ubuntu Budgie 20.04 Kernel 5.4.0 Nvidia drivers Ultra Widescreen: 5120x1440

Setting triple_monitor_mode 1 in the console makes it work technically, however there are many, many glitches in that mode right now. Adding -windowed -w 1920 -h 1080 to the launch options also acts as a workaround, but of course this is not fullscreen.

7RST1 commented 4 years ago

Also having this issue! Ubuntu 20.04.1 LTS amdgpu-pro (Proprietary AMD GPU drivers) Dual setup with CS:GO running on the main 4K screen

7RST1 commented 4 years ago

Sorry for commenting again, but despite lack of activity, I think this issue is pretty urgent. It might affect every Ubuntu user with fractional scaling enabled.

User Interface label should be added, no?

k3d3 commented 4 years ago

I agree - this should probably be a lot higher priority than it currently is, as it COMPLETELY breaks CS:GO on Ubuntu.

7RST1 commented 3 years ago

This issue still exists in Ubuntu 20.10. Also tried switching to open-source amdgpu drivers, and it didn't help. I'm also trying to run it on my new 1440p screen and I face the same issue. I miss being able to play CS:GO!

lostpolaris commented 3 years ago

wmctrl -r "Counter-Strike: Global Offensive - OpenGL" -e 0,1080,371,1920,1080' wmctrl -r "Counter-Strike: Global Offensive - OpenGL" -e 0,x_offset, y_offset,x_wide,y_height' I had this issue for my multi-monitor setup and running this command after I launch the game fixes my issue.

7RST1 commented 3 years ago

The above solution did not work for me. I can't believe more people are not reporting the issue? Are there so few people using fractional scaling? Skjermbilde fra 2021-01-22 23-05-05

weinbrenner commented 3 years ago

+1 (Ubuntu 20.10; 64bit; X11; AMD Radeon RX5700XT; AMD Ryzen 9 3900x) (Samsung 49'': 5120 x 1440px, 120Hz)

russell commented 3 years ago

Can the title of this issue be updated? my experience is that the entire game-play is ruined, it's not just the menu. Yep you can work around it with triple_monitor_mode 1 but the game isn't actually playable. Once you can get into a game, either using triple monitor mode or single monitor mode, the visual artifacting makes it unplayable.

e.g. triple monitor - scope

Using single monitor mode after switching into the game, has the exact same issue

steve-offutt commented 3 years ago

+1

petr-ujezdsky commented 3 years ago

Same problem on macOS BigSur 11.2.3, Samsung C49RG90 49" 5120x1440 px.

LukeSkywalker92 commented 3 years ago

I have the same problem! Arch Linux Kernel: 5.11.10-1 Nvidia driver (GTX 1060) Ultra Widescreen: 5120x1440

Apfelwurm commented 3 years ago

+1 Debian 10 4.19.0-16-amd64 Kernel AMD Pro driver with RX570 Res: 5120x1440

flo333 commented 3 years ago

Same problem here, unfortunately.

Manjaro Kernel 5.10.42 AMD RX570 with Manjaro's video-linux profile (latest OS driver) 5120x1440

BOFH90 commented 3 years ago

+1

Debian 11 Testing Wayland 5.10.0-7 Kernel 5120x1440 AMD Radeon 5700XT with AMD_GPU FOSS Driver

Zamundaaa commented 3 years ago

Same here. Like @russell mentions, even if you manage to enable triple monitor mode with the broken UI, there are some problems like the AUG view not working correctly and even leaving behind some sort of overlay that is really annoying and doesn't go away until you restart the game.

tosziro commented 3 years ago

Same on Ubuntu 20.04.3 with CS:GO and also proton game Wolfenstein: The new order. LG 27 3840x2160 scalled 150% X11 RX 5700 XT Mesa opensource drivers

flo333 commented 3 years ago

My current workaround is to change the system-wide resolution to 3840x1080 before launching the game, this seems to be working fine so far (CRG9).

particledecay commented 3 years ago

+1, same issue, same workaround

Fedora 34 Wayland 5.13.16-200 kernel 5120x1440 (Samsung CRG9) AMD Radeon RX 6900 XT (amdgpu)

and also on...

Ubuntu 21.04 Xorg 5.14.8-051408 5120x1440 (Samsung CRG9) AMD Radeon RX 5700 XT (amdgpu)

zombehsnail commented 3 years ago

Same here.

Ubuntu 21.04 5.11.0-37 kernel 5120x1440 (Samsung G9 Odyssey) Radeon 6700XT (amdgpu) X11

Also, somehow mine is too blurry in game. Antialias off and everything.

Screenshot from 2021-10-07 08-14-13 Screenshot from 2021-10-07 08-14-25 Screenshot from 2021-10-07 08-14-47

JackedFrost commented 3 years ago

+1, Monitor: Crg9 distro:EndeavourOS game works at 3840x1080, 5120x1440 breaks the UI.

echozio commented 3 years ago

I'm also experiencing the broken UI and seemingly lower rendering resolution. The quality issue is consistent with what I've noted here for other source games: https://github.com/ValveSoftware/Source-1-Games/issues/3437

zebcarnell commented 3 years ago

For anyone running 32:9 at 5120x1440 with "triple_monitor_mode 1" and wants decent rendering, drop down to 3840x1080 until this gets resolved.

Here's an example of what I use to launch CSGO. Note: KDE only and supports Wayland. You could easily make a similar solution for another DE with the example.

You'll need to change kscreen-doctor outputs to match your primary monitor. Find them with "kscreen-doctor -o"

#!/bin/bash
echo "Set Desktop resolution for CSGO...."
kscreen-doctor output.1.mode.3840x1080

echo "Run CSGO...."
#Flatpak package
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=/app/bin/steam-wrapper --file-forwarding com.valvesoftware.Steam @@u %U @@~ steam://rungameid/730

#Distribution package
#steam steam://rungameid/730

echo "Waiting for game to start...."
sleep 10
PID=$(pgrep -x csgo_linux64)

echo "CSGO running as PID: $PID. Waiting for process to end...."
tail --pid=$PID -f /dev/null

echo "CSGO PID: $PID Ended. Setting Desktop Resolution back to original value...."
kscreen-doctor output.1.mode.5120x1440

echo "Closing...."

Set launch options in Steam:

-nojoy -novid -fullscreen -w 3840 -h 1080

bond7o6 commented 3 years ago

+1 Same issue

Fedora 34 - KDE Plasma 5.14.16-201 Kernel X11 AMD Ryzen 9 3900X Nvidia GTX 1080 Ti (Nvidia 470 Drivers) 5120x1440

Not the same game, but I get a very similar visual issue on some maps in TF2 (Linux version).

alientek commented 3 years ago

Why is this still an issue??

Ubuntu 21.10 & Nvidia 495 Driver.

zombehsnail commented 3 years ago

So, I went to check out if this problem is exist on windows. Surprise surprise, this problem is just linux related.

zlittell commented 2 years ago

Switching from Windows to Linux as primary OS and have run into this issue on 5120x1440 ultrawide. Can confirm it works just fine in windows 10.

particledecay commented 2 years ago

As an easy workaround, if you launch CSGO from Lutris you can set it to launch with 3840x1080 and it will automatically restore your desktop resolution when you exit the game. image

BOFH90 commented 2 years ago

With the latest update runnig CS:GO with the "-vulkan" option fixes the Problem for me :)

knoopx commented 2 years ago

adding -vulkan did not work for me. running @ 3840x2160 / 1.5 scaling.

flo333 commented 2 years ago

-vulkan works for me, but it introduces other issues. The FPS look fine, but I get massive stutters intermittently.

weinbrenner commented 2 years ago

With the latest update runnig CS:GO with the "-vulkan" option fixes the Problem for me :)

+1

works!

dragonifnotifiswat commented 2 years ago

Adding - Vulkan worked for me @ 5120x1440 but was stuttering to much so I switched back to 3840 , not an hardware issue since it was working well in windows. arch with driver 510.68.02-3

kudos commented 2 years ago

Stuttering seems to be really common with Vulkan games. Afaik it's building shaders, which it should only need to do once. If you stick with it, the stuttering should stop. It's a pain in the ass, but I'm living with it.

CampGareth commented 2 years ago

I also ran into this so switched to windowed mode. I noticed the problem kicks in at a window width of 4096 pixels or greater.

relief-melone commented 1 year ago

that issue has been open for 2 years and nothing at all happened :scream:

tuananh commented 1 year ago

Adding - Vulkan worked for me @ 5120x1440 but was stuttering to much so I switched back to 3840 , not an hardware issue since it was working well in windows. arch with driver 510.68.02-

happened with me too. how did you deal with it?

x86shell commented 1 year ago

Hi all,

I switched from Windows to Pop a couple days ago and i've been having this issue. I've solved it with the following launch args

xrandr --output DP-4 --mode 5120x1440 --scale-from 1024x768 --rate 165.00; gamemoderun %command% -novid -full -w 768 -h 1024; xrandr --output DP-4 --mode 5120x1440 --scale 1x1 --rate 165.00 --dpi 96

You will need to replace the "output", "rate" and possibly DPI/Scale-from.

You can get the output and rate from running xrandr -q

DPI is accessed by running xdpyinfo | grep dots

You will need to remove the "gamemoderun" if you don't use Feral Interactives Gamemode application. Another thing you will need to disable is the HiDPI daemon. I can find this in my Gnome based DE within the display settings, both boxes need to be turned off.

I hope this helps :)