ValveSoftware / csgo-osx-linux

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

[Linux] Low FPS with kernel 6.10 #3829

Closed SniksBjorn closed 3 weeks ago

SniksBjorn commented 2 months ago

Your system information

Please describe your issue in as much detail as possible:

When using the 6.10.3 or 6.10.4 kernel the game has significantly lower fps unless rebar is enabled this was not an issue in 6.9.x People have reported a similar issue in Dota 2 making me believe it's a problem with the source engine https://github.com/ValveSoftware/Dota-2/issues/2782

Steps for reproducing this issue:

  1. use version 6.10.3 or 6.10.4 of the linux kernal
  2. open cs2
kisak-valve commented 2 months ago

Tracked upstream at https://gitlab.freedesktop.org/drm/amd/-/issues/3538.

SQalliT commented 2 months ago

Tracked upstream at https://gitlab.freedesktop.org/drm/amd/-/issues/3538.

I do believe that the issue you have linked is the incorrect issue and is related to the recent AMDGPU clear page change as mentioned here: https://gitlab.freedesktop.org/drm/amd/-/issues/3528#note_2524205

(The report that was opened was initially thought to be the same issue hence the overlap in the comments)

And does not seem to be the same issue that is causing the performance issues when resizeable bar is not working correctly which is shown by https://gitlab.freedesktop.org/drm/amd/-/issues/3528#note_2517761 and the patches reverting the GPU clear page changes not impacting the performance.

MaxXor commented 2 months ago

Damn, right after the latest update which fixes the CS2 freezes, now this... I've had ReBAR already enabled and can confirm it's working. However I'm having the same issue on Arch Linux with linux-zen-6.10.7. Interestingly the low FPS issue didn't occur before the latest update from 9/3/2024. When I got into a game, I had the usual FPS of 250. Now I'm max at 80. No system updates happened in between my tests.

*edit: nvm, had a different issue. My GPU was set to low performance mode:

$ cat /sys/class/drm/card0/device/power_dpm_force_performance_level
low
$ echo "high" > /sys/class/drm/card0/device/power_dpm_force_performance_level
losuler commented 2 months ago

I saw a fix for this was merged into 6.10.10^1 and I can personally confirm having upgraded to that version now on Fedora 40, that it's fixed the fps issues I was having in cs2 with earlier releases of 6.10.x. Where I was getting 40-80 fps with constant jitter 6.10.9, now on 6.10.10 I'm back to 200 fps with no jitter whatsoever.

henrinie commented 1 month ago

Issue was removed for me too with Fedora and kernel 6.10.10-200.fc40.x86_64

kisak-valve commented 3 weeks ago

Closing as fixed upstream. If anyone else is seeing a similar drop in performance immediately after a kernel update, then follow up with your video driver vendor.