ValveSoftware / csgo-osx-linux

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

CS2 Freezes on opening menus as of 07/11/2024 Update #3803

Closed Doomguy1364 closed 2 months ago

Doomguy1364 commented 4 months ago

System information OS: Arch Linux KERNEL: 6.9.9-arch1-1 CPU: AMD Ryzen 7 7800X3D 8-Core GPU: AMD Radeon RX 7900 XTX (radeonsi, navi31, LLVM 18.1.8, DRM 3.57, 6.9.9-arch1-1) GPU DRIVER: 4.6 Mesa 24.1.3-arch1.1 RAM: 32 GB

Text file with steam runtime diagnostic print: Runtime.txt

Have you checked for system updates? Yes, as well as completely reinstalling CS2

Please describe your issue in as much detail as possible: When switching to a new part of the UI or opening the pause menu in-game CS2 Will hang for a few seconds before recovering. This issue was introduced as of the 07/11/2024 update; Before this update, the game had no issues with freezing in menus!

Steps for reproducing this issue: Launch CS2, switch to inventory or play, game will freeze. Or once in game; Open menu via escape, game will freeze.

Below are a few snip its of things that around the game freezing as well as a full log from a game from boot to close with multiple freezes from switching around some menus as well as starting and ending an offline practice game opening and closing the pause menu.

Full developer console log: consolelog.log

[Developer] Failed to find ui preference 'panorama_play_movie_ambient_sound' [WorldRenderer] CWorldRendererMgr::ServiceWorldRequests long frame: 15.031560ms

Warning: have oustanding per-frame memory stack with 7 allocations Warning: have oustanding per-frame memory stack with 3 allocations Warning: have oustanding per-frame memory stack with 5 allocations Warning: have oustanding per-frame memory stack with 44 allocations Warning: have oustanding per-frame memory stack with 261 allocations Warning: have 6 in use and 0 free per-frame memory stacks outstanding. The oldest stack was created at present 1, and we're now on present 3099 Warning: have oustanding per-frame memory stack with 7 allocations Warning: have oustanding per-frame memory stack with 3 allocations Warning: have oustanding per-frame memory stack with 5 allocations Warning: have oustanding per-frame memory stack with 44 allocations Warning: have oustanding per-frame memory stack with 261 allocations Warning: have 6 in use and 0 free per-frame memory stacks outstanding. The oldest stack was created at present 1, and we're now on present 3100 Warning: have oustanding per-frame memory stack with 7 allocations Warning: have oustanding per-frame memory stack with 3 allocations Warning: have oustanding per-frame memory stack with 5 allocations Warning: have oustanding per-frame memory stack with 44 allocations Warning: have oustanding per-frame memory stack with 261 allocations Warning: have 6 in use and 0 free per-frame memory stacks outstanding. The oldest stack was created at present 1, and we're now on present 3101 Warning: have oustanding per-frame memory stack with 7 allocations Warning: have oustanding per-frame memory stack with 3 allocations Warning: have oustanding per-frame memory stack with 5 allocations Warning: have oustanding per-frame memory stack with 44 allocations Warning: have oustanding per-frame memory stack with 261 allocations Warning: have 6 in use and 0 free per-frame memory stacks outstanding. The oldest stack was created at present 1, and we're now on present 3102 Warning: have oustanding per-frame memory stack with 7 allocations Warning: have oustanding per-frame memory stack with 7 allocations Warning: have oustanding per-frame memory stack with 3 allocations Warning: have oustanding per-frame memory stack with 5 allocations Warning: have oustanding per-frame memory stack with 44 allocations Warning: have oustanding per-frame memory stack with 261 allocations Warning: have 6 in use and 0 free per-frame memory stacks outstanding. The oldest stack was created at present 1, and we're now on present 3103

[Developer] Failed to find ui preference 'panorama_play_movie_ambient_sound' [Developer] Failed to find ui preference 'panorama_play_movie_ambient_sound'

[Developer] Failed to find ui preference 'spec_autodirector_cameraman'

windblows95 commented 3 months ago

I added vm.vfs_cache_pressure = 50 to /etc/sysctl.conf and it does seem to have significantly improved the situation. In the 4 games I did since, I stuttered only when the game finished / going back to the main menu. I do also run the game with gamemode and with a nice value of -18. In addition, I have two friends on windows with similar issues, so this might not be a Linux specific issue.

fluckx commented 3 months ago

Then I realizewds on my laptop I have shader pre-caching on, so the game took a long time to open, I had disabled this on my desktop a long time ago, I re enabled it in steam settings and so far the issue seems gone, will do more testing but could this possibly be the problem?

Wow interesting find. I turned it off as well due to how long it takes and how often it needed to be done. I will test on my end too

I had pre-caching on as well. I disabled it a few days ago and it's been better since I disabled it. It gets worse after a few games, but nothing a restart doesn't fix. The longer I play the more I get screen latency which makes it all feel more laggy. It's definitely better than what it was before, but I'd consider this more of a "crutch" to make it workable rather than an actual fix.

Note - I'm also running it with gamemode which did seem to positively affected it.

nadanke commented 3 months ago

@Dwyriel thank you for trying this out.

If even -20 doesn't help, I have trouble believing that this issue is related to the CPU scheduler. But who knows.

My current understanding is that there are 2 known

I just recompiled the tkg kernel with the default scheduler, and got the freezes again. Booted back into the PDS kernel and it's fine again.

Dwyriel commented 3 months ago

@nadanke lol you beat me to it, I'm currently compiling the tkg kernel with the default sched to test it as well haha

Update: Just tested with the newly compiled kernel (using the default scheduler) and it's still freezing.

gitreelike commented 3 months ago

OK, I take that one back then :). So the PDS scheduler seems to be it.

Does anyone know how to find out, which scheduler the steam deck has? I can check things a the device if that helps.

lou-perret commented 3 months ago

Still happening in today's update

Arian8j2 commented 3 months ago

officially one month has passed since the issue was reported :facepalm:

gamertyke commented 3 months ago

officially one month has passed since the issue was reported ๐Ÿคฆ

Don't worry dude we're getting keychains soon

xMonologue commented 3 months ago

Day 30. Seems volvo didn't patch the bug. Sadly we need to use a custom linux-tkg kernel with pds recommended by me to fix it. Had to delete the comment due to the amount of hate I was receiving. Volvo plz fix. We pray the mighty gaben that he will respond to our prayers and probably won't. In the name of Lord Gaben Wallet Amen!

xMonologue commented 3 months ago

officially one month has passed since the issue was reported ๐Ÿคฆ

Don't worry dude we're getting keychains soon

Volvo got their priorities straight

gamertyke commented 3 months ago

I guess we can only hope that they're working on a major improvement to the Linux client that fixes a lot of these issues all at once.

jb55 commented 3 months ago

you can play without it completely locking up using some of these tricks:

using these two techniques I can at least stay in for the duration of competitive games.

there is some computation that is locking up the render thread? alt-tabbing must interrupt the process, and quick-tap tabbing must keep the computation short enough to not lock it up for too long. my best guess as a software engineer, but what do I know.

one thing that I may try is to run perf while this is happening to see if I can trace any weird behavior.

Dwyriel commented 3 months ago

@jb55 Those do not work for everyone and are not consistent anyway (and they've been mentioned before as well) On my end (both my main pc and my gaming laptop) if I alt tab it usually takes 10-20 secs to tab back in, game being frozen or not, and it doesn't seem to unfreeze it, it only tabs back in when it'd have "naturally" been unfrozen by itself anyway. The death card-thingy-ui that appears after you die can also freeze the game, not a big deal on competitive but on DM it makes the freezes a lot more frequent, and I got disconnected multiple times because of that. (on that note, it rarely freezes for me when checking scoreboard, mostly when pressing escape, dying, or switching tabs in the main menu. Happens, but rarely)

jb55 commented 3 months ago

curiously enough there does seem to be something scheduler related. of all the samples I have done to try to trace during the lag it seems the time is most spent in the scheduler:

   1.26%  VKRenderThread   [kernel.kallsyms]                        [k] update_curr                                                                                                                              โ—†
   1.25%  VKRenderThread   [kernel.kallsyms]                        [k] pick_next_task_fair                                                                                                                      โ–’
   1.02%  cs2              libm.so.6                                [.] __logf_fma                                                                                                                               โ–’
   0.76%  VKRenderThread   libc.so.6                                [.] __memset_avx2_unaligned_erms                                                                                                             โ–’
   0.69%  VKRenderThread   [kernel.kallsyms]                        [k] srso_safe_ret                                                                                                                            โ–’
   0.68%  VKRenderThread   [kernel.kallsyms]                        [k] psi_account_irqtime                                                                                                                      โ–’
   0.66%  VKRenderThread   libvulkan_radeon.so                      [.] radv_UpdateDescriptorSetWithTemplate                                                                                                     โ–’
   0.60%  VKRenderThread   [kernel.kallsyms]                        [k] __schedule                                                                                                                               โ–’
   0.45%  cs2              librendersystemvulkan.so                 [.] 0x00000000000ddb2c                                                                                                                       โ–’
   0.43%  cs2              libc.so.6                                [.] __memmove_avx_unaligned_erms                                                                                                             โ–’
   0.39%  VKRenderThread   [kernel.kallsyms]                        [k] native_sched_clock                                                                                                                       โ–’
   0.37%  VKRenderThread   [kernel.kallsyms]                        [k] __calc_delta.constprop.0                                                                                                                 โ–’
   0.37%  cs2              librendersystemvulkan.so                 [.] 0x00000000001cc25c                                                                                                                       โ–’
   0.34%  cs2              librendersystemvulkan.so                 [.] 0x00000000000ddac0                                                                                                                       โ–’
   0.34%  VKRenderThread   [kernel.kallsyms]                        [k] do_sched_yield                                                                                                                           โ–’
   0.34%  VKRenderThread   [kernel.kallsyms]                        [k] update_rq_clock                                                                                                                          โ–’
   0.31%  VKRenderThread   [kernel.kallsyms]                        [k] syscall_exit_to_user_mode                                                                                                                โ–’
   0.30%  VKRenderThread   libvulkan_radeon.so                      [.] radv_CmdBindPipeline                                                                                                                     โ–’
   0.30%  VKRenderThread   [kernel.kallsyms]                        [k] do_syscall_64                                                                                                                            โ–’
   0.30%  cs2              librendersystemvulkan.so                 [.] 0x00000000000ddac4                                                                                                                       โ–’
   0.27%  VKRenderThread   [kernel.kallsyms]                        [k] pick_eevdf                                                                                                                               โ–’
   0.27%  VKRenderThread   librendersystemvulkan.so                 [.] 0x000000000012ed65                                                                                                                       โ–’
   0.26%  VKRenderThread   [kernel.kallsyms]                        [k] update_min_vruntime                                                                                                                      โ–’
   0.26%  cs2              librendersystemvulkan.so                 [.] 0x00000000000ddac8                                                                                                                       โ–’
   0.25%  VKRenderThread   [kernel.kallsyms]                        [k] entry_SYSCALL_64                                                                                                                         โ–’
   0.24%  cs2              librendersystemvulkan.so                 [.] 0x00000000000df812                                                                                                                       โ–’
   0.24%  GlobPool/3       libc.so.6                                [.] __memmove_avx_unaligned_erms                                                                                                             โ–’
   0.24%  cs2              [kernel.kallsyms]                        [k] try_to_wake_up                                                                                                                           โ–’
   0.22%  VKRenderThread   librendersystemvulkan.so                 [.] 0x0000000000182a5f                                                                                                                       โ–’
   0.22%  VKRenderThread   [kernel.kallsyms]                        [k] entry_SYSCALL_64_after_hwframe                                                                                                           โ–’
   0.22%  VKRenderThread   librendersystemvulkan.so                 [.] 0x00000000000c0897                                                                                                                       โ–’
   0.22%  cs2              librendersystemvulkan.so                 [.] 0x00000000001cc248                                                                                                                       โ–’
   0.21%  AudioMixer       libc.so.6                                [.] __memmove_avx_unaligned_erms                                                                                                             โ–’
   0.20%  cs2              librendersystemvulkan.so                 [.] 0x00000000001cc224                                                                                                                       โ–’
   0.20%  VKRenderThread   [kernel.kallsyms]                        [k] smp_call_function_many_cond                                                                                                              โ–’
   0.20%  cs2              librendersystemvulkan.so                 [.] 0x00000000000e09c2                                                                                                                       โ–’
   0.20%  VKRenderThread   [kernel.kallsyms]                        [k] raw_spin_rq_lock_nested                                                                                                                  โ–’
   0.20%  cs2              librendersystemvulkan.so                 [.] 0x00000000001cc213                                                                                                                       โ–’
   0.19%  cs2              librendersystemvulkan.so                 [.] 0x00000000000df7f5                                                                                                                       โ–’
   0.19%  VKRenderThread   librendersystemvulkan.so                 [.] 0x00000000000c1190                                                                                                                       โ–’
   0.18%  cs2              libtier0.so                              [.] je_free                                                                                                                                  โ–’
   0.18%  cs2              librendersystemvulkan.so                 [.] 0x00000000001cc24b                                                                                                                       โ–’
   0.18%  GlobPool/3       [kernel.kallsyms]                        [k] try_to_wake_up                                                                                                                           โ–’
   0.18%  VKRenderThread   libvulkan_radeon.so                      [.] radv_emit_all_graphics_states                                                                                                            โ–’
   0.18%  cs2              libvulkan_radeon.so                      [.] _blake3_hash_many_avx2                                                                                                                   โ–’
   0.17%  cs2              librendersystemvulkan.so                 [.] 0x00000000000e09c0    

__logf_fma shows up a lot during the lag as well

will see if I can get useful heatmaps and and stack views of this

jb55 commented 3 months ago

From what I can tell, the scheduler is at play because the render thread seems to be spawning many threaded jobs?

Aug15-094028

+   15.45%     0.00%  cs2              libc.so.6                      [.] __libc_start_call_main                                                                                                                 โ—†
+   15.45%     0.00%  cs2              cs2                            [.] 0x0000561438902920                                                                                                                     โ–’
+   15.45%     0.00%  cs2              cs2                            [.] 0x0000561438902f70                                                                                                                     โ–’
+   15.45%     0.00%  cs2              libengine2.so                  [.] Source2Main                                                                                                                            โ–’
+   15.45%     0.00%  cs2              libengine2.so                  [.] 0x00007f5392178702                                                                                                                     โ–’
+   15.45%     0.00%  cs2              libengine2.so                  [.] 0x00007f5392172d58                                                                                                                     โ–’
+   15.45%     0.00%  cs2              libengine2.so                  [.] 0x00007f539217fdd5                                                                                                                     โ–’
+   15.45%     0.00%  cs2              libengine2.so                  [.] 0x00007f539217f9d9                                                                                                                     โ–’
+   11.09%     0.00%  GlobPool/3       libc.so.6                      [.] start_thread                                                                                                                           โ–’
+   11.09%     0.00%  GlobPool/3       libtier0.so                    [.] 0x00007f5393ab81d7                                                                                                                     โ–’
+   11.09%     0.00%  GlobPool/3       libtier0.so                    [.] CThread::ThreadProc(void*)                                                                                                             โ–’
+   11.05%     0.28%  VKRenderThread   [kernel.kallsyms]              [k] entry_SYSCALL_64_after_hwframe                                                                                                         โ–’
+   10.91%     0.00%  VKRenderThread   libc.so.6                      [.] start_thread                                                                                                                           โ–’
+   10.91%     0.00%  VKRenderThread   libtier0.so                    [.] 0x00007f5393ab81d7                                                                                                                     โ–’
+   10.91%     0.00%  VKRenderThread   librendersystemvulkan.so       [.] 0x00007f5378cba299                                                                                                                     โ–’
+   10.91%     0.00%  VKRenderThread   librendersystemvulkan.so       [.] 0x00007f5378c3944f                                                                                                                     โ–’
+   10.91%     0.00%  VKRenderThread   librendersystemvulkan.so       [.] 0x00007f5378c39026                                                                                                                     โ–’
+   10.87%     0.00%  GlobPool/3       libtier0.so                    [.] 0x00007f5393a01a14                                                                                                                     โ–’
+   10.87%     0.00%  GlobPool/3       libtier0.so                    [.] 0x00007f5393a00018                                                                                                                     โ–’
+   10.87%     0.07%  GlobPool/3       libtier0.so                    [.] CThreadedJob::Execute()                                                                                                                โ–’
+   10.76%     0.00%  VKRenderThread   librendersystemvulkan.so       [.] 0x00007f5378cf277b                                                                                                                     โ–’
+   10.71%     0.82%  VKRenderThread   [kernel.kallsyms]              [k] do_syscall_64                                                                                                                          โ–’
+   10.61%     0.08%  VKRenderThread   libc.so.6                      [.] __sched_yield                                                                                                                          โ–’
+    8.94%     0.07%  VKRenderThread   [kernel.kallsyms]              [k] __x64_sys_sched_yield                                                                                                                  โ–’
+    8.48%     0.59%  VKRenderThread   [kernel.kallsyms]              [k] __schedule                                                                                                                             โ–’
+    8.48%     0.00%  VKRenderThread   [kernel.kallsyms]              [k] schedule                                                                                                                               โ–’
+    8.22%     0.00%  GlobPool/4       libc.so.6                      [.] start_thread                                                                                                                           โ–’
+    8.22%     0.00%  GlobPool/4       libtier0.so                    [.] 0x00007f5393ab81d7                                                                                                                     โ–’
+    8.22%     0.00%  GlobPool/4       libtier0.so                    [.] CThread::ThreadProc(void*)                                                                                                             โ–’
+    8.17%     0.00%  GlobPool/4       libtier0.so                    [.] 0x00007f5393a01a14                                                                                                                     โ–’
+    8.17%     0.00%  GlobPool/4       libtier0.so                    [.] 0x00007f5393a00018                                                                                                                     โ–’
+    8.17%     0.00%  GlobPool/4       libtier0.so                    [.] CThreadedJob::Execute()                                                                                                                โ–’
+    7.66%     0.00%  Video Decode Th  [unknown]                      [.] 0x7300747865746e6f                                                                                                                     โ–’
+    7.66%     0.00%  Video Decode Th  libavcodec.so.58               [.] 0x00007f532e414990                                                                                                                     โ–’
+    7.66%     0.00%  Video Decode Th  [unknown]                      [.] 0000000000000000                                                                                                                       โ–’
+    7.66%     0.00%  Video Decode Th  libavcodec.so.58               [.] 0x00007f532e3fcf5f                                                                                                                     โ–’
+    7.66%     0.00%  Video Decode Th  libvpx.so.6                    [.] vpx_codec_decode                                                                                                                       โ–’
+    7.66%     0.00%  Video Decode Th  libvpx.so.6                    [.] 0x00007f532395cafb                                                                                                                     โ–’
+    7.66%     0.00%  Video Decode Th  libvpx.so.6                    [.] 0x00007f5323965e16                                                                                                                     โ–’
+    6.50%     6.50%  cs2              libsteamnetworkingsockets.so   [.] 0x000000000015c2e0                                                                                                                     โ–’
+    6.50%     0.00%  cs2              libsteamnetworkingsockets.so   [.] 0x00007f5391b8f2e0                                                                                                                     โ–’
+    6.15%     0.00%  VKRenderThread   [unknown]                      [.] 0000000000000000                                                                                                                       โ–’
+    5.84%     5.78%  VKRenderThread   libc.so.6                      [.] __memset_avx2_unaligned_erms                                                                                                           โ–’
+    5.57%     0.00%  cs2              libengine2.so                  [.] 0x00007f539219ef4b                                                                                                                     โ–’
+    5.57%     0.00%  cs2              libengine2.so                  [.] 0x00007f5392193e02                                                                                                                     โ–’
+    5.23%     0.00%  cs2              libclient.so                   [.] 0x00007f52e4db2546                                                                                                                     โ–’
+    4.79%     0.00%  cs2              libengine2.so                  [.] 0x00007f539229edf1    

perhaps too many jobs are getting added to the render job queue and it is stalling the render thread? maybe some schedulers can handle it which is why the PDS scheduler is fine.

During this trace I was pressing escape and tab a bunch to open the menus which caused brief freezing.

Here's the full flamegraph from one of my runs:

https://cdn.jb55.com/s/97ae8b2ffc2c883f.svg

It's possible the inefficiency (or fairness?) of the CFS scheduler revealed a performance issue that might have gone unnoticed because of other schedulers that are unfair and do not have this problem.

Dwyriel commented 3 months ago

It's possible the inefficiency (or fairness?) of the CFS scheduler revealed a performance issue that might have gone unnoticed because of other schedulers that are unfair and do not have this problem.

I don't think it's related to fairness since even when setting all the game threads (including the launch script) to -20 niceness it still hangs. Also the linux kernel moved to eevdf last year (I think). I tried downgrading the vanilla arch kernel to 6.4 to test the CFS scheduler but systemd throws an error when trying to load the kernel modules, I'll try compiling the tkg kernel with CFS to see if I can use it that way.

Update: tkg 6.4.16 using the old scheduler (CFS) has the same behavior as newer kernels using EEVDF scheduler. PDS still reins supreme.

Poltergeisen commented 3 months ago

This might be unrelated, but if I go to inventory I see the skins changing while viewing it. If you wait for the freezes the items load then they come into further detail.

I was wondering if hitting escape causes this same item rendering thing to kick off which might freeze the game?

Definitely just a gut feeling and don't have anything to back it up

wojgie commented 3 months ago

seems to be also happening on windows? but way less? when pressing ESC

 228.13ms Client Simulation
 223.65ms FileSystem
   6.93ms Client Rendering
   5.45ms PanoramaUI
   2.84ms Frame Boundary
   2.35ms Javascript
funforums commented 3 months ago

Guys, just a quick note: lowering the details to the lowest (but disabling FSR) made a difference for me in crashes. Dont take me wrong, it still freezes and all, and the menus freeze like there is no tomorrow, but at least I don't get disconnected out of the game and lose rounds in competitive. I was even able to play a match of inferno in a decent enough way, which before it was impossible (i would crash almost every round and get dropped out of the match).

GenocideStomper commented 3 months ago

I can confirm PDS massively improved my performance over bore.

koreanfan commented 3 months ago

Also on linux when i launch cs2 with full screen mode(i use 1280x720) in video settings then game change my desktop resolution to corresponding resolution in game. When i quit from cs2 then i got 1280x720 resolution on my desktop

ariebesehl commented 3 months ago

My system now: Ryzen 5700X3D, 16GiB CL16 DDR3200 XMP, RX580X, LMDE 6 w/ 6.1.0-23-amd64 (latest system default) My launch settings: gamemoderun %command% -developer -nojoy -nohltv -high +cl_forcepreload 1 My GFX settings: 1080p and all low defaults, dynamic shadows = all, super resolution = disabled

Mostly runs fine, stutter when pressing ESC into menu (not always, random, but 90% of the time). Sometimes freezes when D/C after clicking Exit Server, ALT+Tabbing does not work. I'm not particularly keen on trying out a custom kernel.

I did recall vm.max_map_count=262144 recommended to be set for CSGO after this week's posts. No difference from the default 65530 value (although I did only try 262138, and it could "magically" work if 262144 is some threshold, but that seems wild). I also set vm.vfs_cache_pressure=50 to no effect and had tried both independently and together, all to no effect (at least none-noticeable).

However, since before my CPU upgrade recently (previousl Ryzen 2700X), I think, spamming ALT+Tab has sometimes started to throw me into my login-in screen, and sometimes without the freeze even occuring (i.e. a "normal" ALT+Tab). It might be a new issue altogether, or related, has anyone else experienced that so far?

EDIT: vm.max_map_count, not vm.map_max_memory, has been edited above

EDIT2: sysctl -a to list your system's values

EDIT3: End up with a blank desktop when thrown into login. Soemtimes, cs2 is still running then, sometimes not. Maybe it's just the heat and my system isn't actually rock solid with XMP, no clue.

HannesMC commented 3 months ago

Maybe a solution for the big freezes with switching ingame to menu and backwards....

I didnยดt thought thats a good idea to remove the -vulkan switch or to add the -sdlaudiodriver pipewire switch. But, what should i say -> its very better without -vulkan and with -sdlaudiodriver pipewire switch.

Here are my CS2 Launch-Option Parameters gamemoderun %command% -nojoy -novid -high -sdlaudiodriver pipewire

And here are some O/S Infos grafik

GPU = AMDยฎ Radeon rx 7900 gre

gamertyke commented 3 months ago

Apologies for ignorance, but what does -sdlaudiodriver pipewire do? Does it use pulseaudio otherwise? Is there any discernible gameplay impact?

fluckx commented 3 months ago

The SDL flag removes the lag in menu for me. Though I seem to have noticeably more screen latency up to the point where I just removed it again.

edit: it's obviously not a flag for the latency. I was just commenting on the impact it had on my machine.

gamertyke commented 3 months ago

The SDL flag removrs the lag in menunfor me. Though I seem to have noticeably more screen latency up to the point where I just removed it again

Ooof yeah that's a no go then.

turrini commented 3 months ago

Current Steam beta and Sniper Runtime Beta (for steam beta) solved for me, no more freezes. And I can play up to 10+ maps without frame drop after every match.

Debian Buster with NVidia drivers version 535.113

gitreelike commented 3 months ago

Current Steam beta and Sniper Runtime Beta (for steam beta) solved for me, no more freezes. And I can play up to 10+ maps without frame drop after every match.

Debian Buster with NVidia drivers version 535.113

Cannot confirm this on my system unfortunately. Still freezes like before.

Same goes for changing the SDL audio driver. I tried alsa and pipewire. No difference for me. By I also do not have pipewire - so with that option I also have no audio.

spikederailed commented 3 months ago

Current Steam beta and Sniper Runtime Beta (for steam beta) solved for me, no more freezes. And I can play up to 10+ maps without frame drop after every match.

Debian Buster with NVidia drivers version 535.113

I have just tried this, and unfortunately for me the issue is as bad as ever.

Edit two hours later, a new release came out and this update has not helped anything !shocking!

ddowie commented 3 months ago

Lowering the details as @funforums suggested helped me. Now I can play match game without problems. Menus are still lagging but in 99% it doesnt crash. This is good temporary solution for me. I hope it is fixed soon so we can enjoy all the details.

th3tok3n commented 3 months ago

SDL_AUDIO_DRIVER=pipewire seems to have alleviated the menu freezing for me. There is maybe a couple second pause when you press Esc or Tab but I was able to play. I didn't try the multiple map change fps drop yet.

Untitled

asiantuntija commented 3 months ago

What the hell, game is literally unplayable now for over a month? Any Valve dev even trying to game on linux?

gamertyke commented 3 months ago

It is extremely frustrating, especially considering all the good Valve does for the Linux community. I think their Vulkan just kinda sucks right now. Deadlock runs better on Linux with DXVK than native Vulkan lol

HannesMC commented 3 months ago

My latest findings and experiments led me to a relatively acceptable result.

If you reduce the graphics settings, there are considerably!!! fewer problems with navigation from in-game to menu and within the menu. But unfortunately the problems have not completely disappeared. For example, if I press Escape twice in quick succession to get to the menu, the entire game sometimes crashes.

I'm not sure how many people here play with a native high resolution, but I could imagine that this also contributes to the slow navigation within the menus.

I looked into gamescope and unfortunately found that there is no ready-made package for my O/S (POP!_OS 22.04). As a result, I spent a long time trying to install gamescope and all its dependencies (and there are quite a few). In addition, many newer packages are required than what is officially released in the stable version of POP!_OS 22.04.

But there are nice people who have created a PPA (PersonalPackageArchive) for gamescope. If you have added this, you can easily install gamescope via โ€œsudo apt install gamescopeโ€. And the best -> it works just like that. Yipiiie!

Here is the PPA from Alexey Arutyunov And here are my "current" Launch Options: gamescope -w 1920 -h 1200 -W 3840 -H 1600 -f -b -- %command% -nojoy -novid -sdlaudiodriver pipewire -high

My native resolution is 3840x1600. Ingame is now 1920x1200. The "Mouse Problem" --> #3342 <-- is also gone with gamescope.

koreanfan commented 3 months ago

Lowering the details as @funforums suggested helped me. Now I can play match game without problems. Menus are still lagging but in 99% it doesnt crash. This is good temporary solution for me. I hope it is fixed soon so we can enjoy all the details.

no difference, same results, lags, freezes, huge fps drops. Also huge fps drops started after changing resolution in game settings, esp when you switch from fullscreen to windowed/fullscreen windowed or etc. No problems with dota 2

ndv99 commented 3 months ago

My latest findings and experiments led me to a relatively acceptable result. ... My native resolution is 3840x1600. Ingame is now 1920x1200. The "Mouse Problem" --> #3342 <-- is also gone with gamescope.

Thanks for sharing, @HannesMC ! Planning to test this locally soon. If you don't mind, what does your graphics stack look like? (GPU, driver version, display server, DE)

ddowie commented 3 months ago

And here are my "current" Launch Options: gamescope -w 1920 -h 1200 -W 3840 -H 1600 -f -b -- %command% -nojoy -novid -sdlaudiodriver pipewire -high

I tried with gamescope no difference in lagging/freezing menus. The only difference is that mouse doesnt work. And I also have native 3840x1600.

HannesMC commented 3 months ago

My latest findings and experiments led me to a relatively acceptable result. ... My native resolution is 3840x1600. Ingame is now 1920x1200. The "Mouse Problem" --> #3342 <-- is also gone with gamescope.

Thanks for sharing, @HannesMC ! Planning to test this locally soon. If you don't mind, what does your graphics stack look like? (GPU, driver version, display server, DE)

DisplayManager: X11

grafik

grafik

HannesMC commented 3 months ago

And here are my "current" Launch Options: gamescope -w 1920 -h 1200 -W 3840 -H 1600 -f -b -- %command% -nojoy -novid -sdlaudiodriver pipewire -high

I tried with gamescope no difference in lagging/freezing menus. The only difference is that mouse doesnt work. And I also have native 3840x1600.

did you lower your graphic details - just 4 testing?

telometto commented 3 months ago

Man, f@!% lowering settings and stuff. The game should be playable at whatever the hardware allows; I bought the game (CS:GO), and I have spent money in the game over the years, too. And, as long as the game is supported, I expect to be able to play it - especially if I could play up until it got """patched""" a month or so ago.

I don't buy a Ferrari and then the dealership tells me that I can't drive it more than 60 km/h or else the car will suddenly die on me.

HannesMC commented 3 months ago

Man, f@!% lowering settings and stuff. The game should be playable at whatever the hardware allows; I bought the game (CS:GO), and I have spent money in the game over the years, too. And, as long as the game is supported, I expect to be able to play it - especially if I could play up until it got """patched""" a month or so ago.

I don't buy a Ferrari and then the dealership tells me that I can't drive it more than 60 km/h or else the car will suddenly die on me.

I understand your frustration. The point is that any useful information that is brought to Valve from the community may help narrow down the problem and ultimately solve it.

It is also not in my personal interest to play the game permanently on โ€œworkaroundโ€ mode. On the one hand, it is intended to find out whether several people have the same experiences and, of course, have a chance to play the game at all until a fix is found.

Back to the point.

What I personally have noticed is that with the same CS2 settings, the same O/S settings and the same drivers, I have noticed different behaviors of the game. โ€œSometimes I would guess that it depends on which server you are currently connected to. I didn't want to think that at first, but it has happened to me several times that the game behaves completely differently with the same settings at different times. Even though no changes had been made.

That's a bit creepy.

gitreelike commented 3 months ago

Disclaimer: I'm obviously not aware, what you guys at Valve are working on right now and how Valve deals with such things in general.

But this issue in conjunction with a few past issues send the message that Linux is not really that important to Valve.

So, @kisak-valve , maybe it makes some sense to contract out some of the Linux QA and bugfixing work if your resources are short. Without anyone even changing any source, I think you could at least get a fair idea of some problem causes and a few suggestions for fixes when someone can profile this with (read) access to the source. Obviously contractors would also be happy to fix issues if that's OK for you.

Please delete this comment, if this is too off topic.

3zet commented 3 months ago

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

When you mentioned it, the problems started exactly at the time when they opened british servers...

ilievi187 commented 3 months ago

Replying to https://github.com/ValveSoftware/csgo-osx-linux/issues/3803#issue-2407323252

Hello my friend :)

Is this issue only thing you observe in the current specs ,because i thing to upgrade but still waiting for 9X3D. Do you feel stutery jittery laggy movement? Just asking thanks.

HannesMC commented 3 months ago

Replying to #3803 (comment)

Hello my friend :)

Is this issue only thing you observe in the current specs ,because i thing to upgrade but still waiting for 9X3D. Do you feel stutery jittery laggy movement? Just asking thanks.

I have no problems ingame. The game itself runs very well. My main problem is that the game freezes when you press the escape key ingame to get to the menu.

Btw: what I noticed yesterday is that the steam overlay doesn't cause any problems at all.

In the meantime, I was able to carry out various local tests (with bots). Unfortunately, I had the same freeze problem here as with the official servers. So for my part I can say -> it's probably not due to the game servers themselves.

What still makes me wonder is that these problems do not always occur to the same extent. There are days when almost everything works great. Then again there are days when the game is unplayable.

xMonologue commented 3 months ago

Bro I tried everything, from using the linux610-tkg-pds kernel, changing the launch commands, adjusting the settings, I still have lags/freeze and sometimes sounds cut up and my game freeze including my PC so I have to power my pc off. When are they fixing this?

IMarkoMC commented 3 months ago

Bro I tried everything, from using the linux610-tkg-pds kernel, changing the launch commands, adjusting the settings, I still have lags/freeze and sometimes sounds cut up and my game freeze including my PC so I have to power my pc off. When are they fixing this?

When we start voting with our wallet and stop supporting this shitshow.

It's not like a "small" subset of people have this issue with high end CPUs/GPUs/Some brand it's literally everyone and doesn't seem like they give a single fuck about it so yeah, forget about CS2 for the near future, they're way too busy moving a box in a map and pushing more stuff for people to buy

audiem13 commented 3 months ago

I was able to fix the major menu issue I had, which was hitting escape menu during games on accident. I found this random comment on /r/linux_gaming it recommended for those on Wayland, setting SDL_VIDEODRIVER=x11 . Give it a shot it at least made the game menus freeze far less for me so I can play.

Complete Launch Options(not sure if I need all this after adding the improvement above): gamescope -e -w 1920 -h 1080 -W 3440 -H 1440 -f --force-grab-cursor gamemoderun SDL_VIDEODRIVER=x11 %command% -vulkan -freq 144

3zet commented 3 months ago

I was able to fix the major menu issue I had, which was hitting escape menu during games on accident. I found this random comment on /r/linux_gaming it recommended for those on Wayland, setting SDL_VIDEODRIVER=x11 . Give it a shot it at least made the game menus freeze far less for me so I can play.

Complete Launch Options(not sure if I need all this after adding the improvement above): gamescope -e -w 1920 -h 1080 -W 3440 -H 1440 -f --force-grab-cursor gamemoderun SDL_VIDEODRIVER=x11 %command% -vulkan -freq 144

You know, that option is in cs2.sh file which runs the game and that parameter runs by default even on wayland?

audiem13 commented 3 months ago

I was able to fix the major menu issue I had, which was hitting escape menu during games on accident. I found this random comment on /r/linux_gaming it recommended for those on Wayland, setting SDL_VIDEODRIVER=x11 . Give it a shot it at least made the game menus freeze far less for me so I can play. Complete Launch Options(not sure if I need all this after adding the improvement above): gamescope -e -w 1920 -h 1080 -W 3440 -H 1440 -f --force-grab-cursor gamemoderun SDL_VIDEODRIVER=x11 %command% -vulkan -freq 144

You know, that option is in cs2.sh file which runs the game and that parameter runs by default even on wayland?

Well adding and removing it in the launch option is 100% doing something for me. Maybe because I'm using gamescope? Edit: that doesn't make any sense but for whatever reason my escape menus are working much better, I see the map actually loading(blue loading bar) when I'm joining a game. Before that it would just completely freeze sometimes I'd have to quit out CS2 and re-open