ValveSoftware / csgo-osx-linux

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

Massive Stuttering and Lags on AMD Ryzen CPUs Windows 10 / Linux #2709

Closed PeeK1e closed 3 years ago

PeeK1e commented 3 years ago

Your system information

Please describe your issue in as much detail as possible:

Expected behavior
Actual behavior

This was tested on multiple Machines with Windows and on my machine on Arch Linux and Windows 10 Every machine where this problem was prominent on had an AMD Ryzen 1000/2000/3000 CPU

Steps I tried to resolve the issue

  1. update the system(s)
  2. update graphics drivers
  3. roll back graphics drivers
  4. set CPU affinity to specific cores
  5. lowering DRAM frequency
  6. increasing DRAM frequency
  7. lowering CPU frequency
  8. set everything to low graphics
  9. set everything to high graphics
  10. disable KDE-plasma compositor
  11. plugging in my Monitor to a different Display-Port slot
  12. close background programs
  13. try a different OS
  14. multiple versions of Linux kernels (linux, linux-lts, linux-zen)

Steps for reproducing this issue:

  1. (own a Ryzen CPU)
  2. Open the game
  3. Type map de_cache in console
  4. (optional) add ~9 bots
  5. walk around the map
  6. experience stutters / lags
kisak-valve commented 3 years ago

Hello @PeeK1e, this reads like a Zen L3 cache performance pitfall that AMD has been avoiding in their mesa/radeonsi driver going back to https://gitlab.freedesktop.org/mesa/mesa/-/commit/8d473f555a0c3c94cffd18e68a13274488dcfb17. Specifically affecting AMD Zen 1 and 2 architecture, if the video driver's internal thread is not running on the same Core Complex (CCX) as the game, then there can potentially be an loss of approximately 30% performance.

Most likely not a CS:GO-specific issue.

PeeK1e commented 3 years ago

Funny thing is, this issue only happens to me on source-based games like CSGO, Half Life etc.

Is there anything you'd sugest doing?

SimplyCorbett commented 3 years ago

This is not an issue on the 3900x. I feel like this is more of a hardware problem on ops end. Such as RAM not using the XMP settings in bios.

PeeK1e commented 3 years ago

Let me be clear, I asked 4 friends to reproduce this issue and went over personally to one of them to check myself.

Setups from them incl. mine:

So I might be wrong with the 3000 series.

But this problem is not only my problem since it happens on multiple OS'es and machines, and because the 1000 series is pretty similar to the 2000 series i suppose the 1000 series is affected aswell.

Also I was checking if my RAM Freq. was right after boot up.

SimplyCorbett commented 3 years ago

Have you tried to limit the core affinity of csgo to rule out what kisak mentioned?

PeeK1e commented 3 years ago

Yup, tried 1-16 same problem persists Linux and Windows

SimplyCorbett commented 3 years ago

I'm of the opinion that whatever problem you're having with the 2000 series should be reproducible on the 3000 series. There are changes between zen+ and zen2 but they are similar enough IMO.

The 2000 series is a fairly popular processor and other then a few reddit threads I don't see anyone complaining about this. It sounds like it's an isolated issue with your and your friends setup.

To help narrow down the issue can you throw some hardware specifications on here along with your bios version and motherboard?

PeeK1e commented 3 years ago

Mainboard: MSI X470 GAMING PLUS AMD X470 BIOS/UEFI version: 7B79vAK2(Beta version) Updated after the issue appeared, version before current version: 7B79vAH

Most of my hardware can be found in the gist-file on the top

ryannathans commented 3 years ago

I noticed there's a BIOS update for some motherboards that address some L3 cache issue - AMD AGESA ComboV2 1.2.0.1 PatchA

https://www.gigabyte.com/Motherboard/X570-AORUS-MASTER-rev-10/support#support-dl-bios

I guess you gotta wait until MSI release 1.2.0.1 PatchA?

PeeK1e commented 3 years ago

Update on the issue I updated my system today and it seems to have fixed the issue. There were a lot of updates and among them i spotted updates for mesa and amd-ucode.

[2021-04-27T14:56:53+0200] [ALPM] upgraded amd-ucode (20210315.3568f96-1 -> 20210315.3568f96-2)
[...]
[2021-04-27T14:56:52+0200] [ALPM] upgraded mesa (21.0.2-1 -> 21.0.3-2)
[2021-04-27T14:57:03+0200] [ALPM] upgraded lib32-mesa (21.0.2-1 -> 21.0.3-2)

So anyone having this issue and running on arch, I suggest to update your system and try to run the game again.