ValveSoftware / csgo-osx-linux

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

FPS Drops After One Game #3724

Open wildcard-f8 opened 5 months ago

wildcard-f8 commented 5 months ago

Your system information

https://gist.github.com/wildcard-f8/6d27cca3f0fd7085b2f016a0e1ff7658

Yes

Please describe your issue in as much detail as possible:

Describe what you expected should happen and what did happen. Please link any large pastes as a Github Gist.

After one game FPS drops. When I start the game up I have the Advanced Video settings set to High and can get about 70-110 FPS. The next game I'm getting about 30-60 FPS. The only thing I can do is restart the game. Even if I drop the settings to Medium, I can get about 100-140 FPS, the next game it's 30-60 FPS.

Steps for reproducing this issue:

  1. Play game
  2. Play next game
  3. ?
acteru commented 5 months ago

+1 - Happen to me as well, sometimes one or two games max until the performance goes to unplayable. Feels like a VRAM issue, I am using NVIDIA 3080 with Arch Linux. (can provide more details if required).

vladest commented 4 months ago

Same here. The game starts to stutter after some time. Even within 1st game. All advanced video settings are set to a minimum

t0ssox commented 4 months ago

I have this bug for like 8 months or even from the start of the CS2 release. I believe you can reproduce this with just steam deck. Please give this bug more priority. I'm really thinking about dual booting windows just for CS2 because in even mid match my fps greatly drops. Overpass in unplayable for me when someone on the map is in water.

gregor3000 commented 3 months ago

before it happened after about round 12, now it seems this happens in new game. i check0ed the console and this is what is inside when thereis a stutter or drop (solo practice game vs. bots on Anubis):

this is when it first show stuttering but there is no telemetry. ``` **** Panel has fill-parent-flow for height, but isn't in a flowing down or up layout **** Panel 1 has fill-parent-flow for width, but isn't in a flowing right layout **** Panel 1 has fill-parent-flow for width, but isn't in a flowing right layout Excessive frame time of 130.55ms clamped. Acting as if the frame only took 100.00ms. (Last amnesty was 'ConsoleVisible', 0.20s ago) 115.60ms Frame Boundary 6.54ms Client Rendering 6.12ms Server Simulation 5.48ms Server Game 2.99ms Client Simulation 2.52ms Prediction Excessive frame time of 167.68ms clamped. Acting as if the frame only took 100.00ms. (Last amnesty was 'ConsoleVisible', 0.97s ago) 154.71ms Client Rendering 153.42ms Frame Boundary 7.28ms Server Simulation 6.74ms Server Game 2.50ms UserCommands 2.36ms NPCs Excessive frame time of 118.02ms clamped. Acting as if the frame only took 100.00ms. (Last amnesty was 'ConsoleVisible', 1.51s ago) 109.04ms Frame Boundary 8.06ms Client Rendering 3.51ms Server Simulation 3.03ms Server Game 2.09ms Client Simulation 1.39ms UserCommands Excessive frame time of 197.35ms clamped. Acting as if the frame only took 100.00ms. (Last amnesty was 'ConsoleVisible', 1.75s ago) 184.91ms Frame Boundary 173.08ms Client Rendering 3.65ms Client Simulation 3.36ms Server Simulation 2.79ms Server Game 2.59ms PanoramaUI Excessive frame time of 106.98ms clamped. Acting as if the frame only took 100.00ms. (Last amnesty was 'ConsoleVisible', 1.99s ago) 98.62ms Frame Boundary 3.89ms Client Rendering 3.56ms Server Simulation 3.06ms Server Game 1.71ms Client Simulation 1.27ms UserCommands Excessive frame time of 103.99ms clamped. Acting as if the frame only took 100.00ms. (Last amnesty was 'ConsoleVisible', 0.28s ago) 99.74ms Frame Boundary 5.73ms Client Rendering 1.91ms Client Simulation 1.36ms HUD 0.56ms PanoramaUI 0.22ms Interpolation Excessive frame time of 175.40ms clamped. Acting as if the frame only took 100.00ms. (Last amnesty was 'ConsoleVisible', 0.54s ago) 162.91ms Client Rendering 161.86ms Frame Boundary 6.30ms Server Simulation 5.71ms Server Game 2.62ms Client Simulation 1.96ms Prediction Excessive frame time of 107.08ms clamped. Acting as if the frame only took 100.00ms 101.92ms Frame Boundary 6.98ms Client Rendering 1.68ms Prediction 1.51ms Client Input/Output 1.51ms Client Simulation 0.66ms HUD [SV CommandQueue] [Tick 109655]['mysteamname' empty starved x4=62.5ms ping=0ms] generating substitute command 106545 from 106545 [SV CommandQueue] [Tick 109656]['mysteamname' empty starved x4=62.5ms ping=0ms] LATE Recv usercmd 106543. Margin: 8.2ms net +-3 queue =-38.7 total [SV CommandQueue] [Tick 109656]['mysteamname' empty starved x4=62.5ms ping=0ms] LATE Recv usercmd 106544. Margin: 8.2ms net +-2 queue =-23.0 total [SV CommandQueue] [Tick 109656]['mysteamname' empty starved x4=62.5ms ping=0ms] LATE Recv usercmd 106545. Margin: 8.2ms net +-1 queue = -7.4 total Excessive frame time of 193.15ms clamped. Acting as if the frame only took 100.00ms 184.23ms Client Rendering 183.33ms Frame Boundary 2.97ms Client Simulation 2.49ms Server Simulation 2.02ms Prediction 2.01ms Server Game [SV CommandQueue] [Tick 109672]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 106561. Margin: 8.0ms net +-1 queue = -7.6 total Excessive frame time of 100.54ms clamped. Acting as if the frame only took 100.00ms 92.67ms Frame Boundary 4.83ms Client Rendering 2.35ms Client Simulation 2.31ms Server Simulation 1.88ms Server Game 1.19ms Prediction Excessive frame time of 181.83ms clamped. Acting as if the frame only took 100.00ms 173.41ms Client Rendering 172.54ms Frame Boundary 3.35ms Server Simulation 2.87ms Server Game 2.39ms Client Simulation 1.39ms NPCs [SV CommandQueue] [Tick 110323]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 107212. Margin: 10.1ms net +-1 queue = -5.5 total Excessive frame time of 104.18ms clamped. Acting as if the frame only took 100.00ms 96.88ms Frame Boundary 8.99ms Client Rendering 2.11ms Client Simulation 2.05ms Server Simulation 1.66ms Server Game 1.14ms Prediction [SV CommandQueue] [Tick 110556]['mysteamname' empty starved x4=62.5ms ping=0ms] generating substitute command 107445 from 107445 [SV CommandQueue] [Tick 110558]['mysteamname' empty starved x5=78.1ms ping=0ms] LATE Recv usercmd 107443. Margin: 7.9ms net +-3 queue =-39.0 total [SV CommandQueue] [Tick 110558]['mysteamname' empty starved x5=78.1ms ping=0ms] LATE Recv usercmd 107444. Margin: 7.9ms net +-2 queue =-23.4 total [SV CommandQueue] [Tick 110558]['mysteamname' empty starved x5=78.1ms ping=0ms] LATE Recv usercmd 107445. Margin: 7.9ms net +-1 queue = -7.7 total [SV CommandQueue] [Tick 110933]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 107820. Margin: 8.9ms net +-1 queue = -6.7 total ```
this one triggered telemetry: ``` **** Panel has fill-parent-flow for height, but isn't in a flowing down or up layout [SteamNetSockets] Certificate expires in 5h17m at 1718544533 (current time 1718525491), will renew in 3h17m [Developer] vCompMat update exceeded 0.152 seconds! [weapons/paints/legacy/sp_tape_orange.vcompmat] **** Panel 32 has fill-parent-flow for width, but isn't in a flowing right layout **** Panel 32 has fill-parent-flow for width, but isn't in a flowing right layout [SV CommandQueue] [Tick 112462]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 109347. Margin: 3.5ms net +-1 queue =-12.2 total [SV CommandQueue] [Tick 112645]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 109530. Margin: 3.1ms net +-1 queue =-12.5 total [SV CommandQueue] [Tick 112861]['mysteamname' empty starved x2=31.2ms ping=0ms] LATE Recv usercmd 109745. Margin: 6.7ms net +-2 queue =-24.5 total [SV CommandQueue] [Tick 112861]['mysteamname' empty starved x2=31.2ms ping=0ms] LATE Recv usercmd 109746. Margin: 6.7ms net +-1 queue = -8.9 total [SV CommandQueue] [Tick 112907]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 109792. Margin: 7.6ms net +-1 queue = -8.1 total CAnimGraphNetworkedVariables::UpdateHistoryElementFromNetworkData( 112923 ) Rewinding time on animgraph interpolation history entries for entity 309 "flashbang_projectile". 1764.421875 < 128530780495064072192.000000 [SV CommandQueue] [Tick 113008]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 109893. Margin: 7.7ms net +-1 queue = -7.9 total [SV CommandQueue] [Tick 113215]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 110100. Margin: 6.7ms net +-1 queue = -9.0 total [SV CommandQueue] [Tick 113430]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 110315. Margin: 14.9ms net +-1 queue = -0.8 total [SV CommandQueue] [Tick 113457]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 110342. Margin: 8.2ms net +-1 queue = -7.4 total [SV CommandQueue] [Tick 113530]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 110415. Margin: 3.0ms net +-1 queue =-12.7 total [SV CommandQueue] [Tick 113760]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 110645. Margin: 7.9ms net +-1 queue = -7.7 total [SV CommandQueue] [Tick 113868]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 110753. Margin: 1.2ms net +-1 queue =-14.4 total [SV CommandQueue] [Tick 113929]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 110814. Margin: 9.7ms net +-1 queue = -5.9 total [SV CommandQueue] [Tick 114005]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 110890. Margin: 0.1ms net +-1 queue =-15.6 total [SV CommandQueue] [Tick 114035]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 110920. Margin: 8.3ms net +-1 queue = -7.3 total [SV CommandQueue] [Tick 114061]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 110946. Margin: 8.1ms net +-1 queue = -7.5 total [SV CommandQueue] [Tick 114084]['mysteamname' empty starved x2=31.2ms ping=0ms] LATE Recv usercmd 110968. Margin: 7.6ms net +-2 queue =-23.7 total [SV CommandQueue] [Tick 114084]['mysteamname' empty starved x2=31.2ms ping=0ms] LATE Recv usercmd 110969. Margin: 7.6ms net +-1 queue = -8.1 total [SV CommandQueue] [Tick 114128]['mysteamname' empty starved x2=31.2ms ping=0ms] LATE Recv usercmd 111012. Margin: 7.9ms net +-2 queue =-23.4 total [SV CommandQueue] [Tick 114128]['mysteamname' empty starved x2=31.2ms ping=0ms] LATE Recv usercmd 111013. Margin: 7.9ms net +-1 queue = -7.8 total [SV CommandQueue] [Tick 114143]['mysteamname' empty starved x2=31.2ms ping=0ms] LATE Recv usercmd 111027. Margin: 10.1ms net +-2 queue =-21.2 total [SV CommandQueue] [Tick 114143]['mysteamname' empty starved x2=31.2ms ping=0ms] LATE Recv usercmd 111028. Margin: 10.1ms net +-1 queue = -5.6 total [SV CommandQueue] [Tick 114205]['mysteamname' empty starved x2=31.2ms ping=0ms] LATE Recv usercmd 111089. Margin: 0.9ms net +-2 queue =-30.4 total [SV CommandQueue] [Tick 114205]['mysteamname' empty starved x2=31.2ms ping=0ms] LATE Recv usercmd 111090. Margin: 0.9ms net +-1 queue =-14.8 total [SV CommandQueue] [Tick 114241]['mysteamname' empty starved x3=46.9ms ping=0ms] LATE Recv usercmd 111124. Margin: 7.5ms net +-3 queue =-39.4 total [SV CommandQueue] [Tick 114241]['mysteamname' empty starved x3=46.9ms ping=0ms] LATE Recv usercmd 111125. Margin: 7.5ms net +-2 queue =-23.7 total [SV CommandQueue] [Tick 114241]['mysteamname' empty starved x3=46.9ms ping=0ms] LATE Recv usercmd 111126. Margin: 7.5ms net +-1 queue = -8.1 total [SV CommandQueue] [Tick 114259]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 111144. Margin: 7.4ms net +-1 queue = -8.3 total [SV CommandQueue] [Tick 114272]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 111157. Margin: 7.0ms net +-1 queue = -8.6 total [SV CommandQueue] [Tick 114339]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 111224. Margin: 7.2ms net +-1 queue = -8.4 total [SV CommandQueue] [Tick 114345]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 111230. Margin: 24.1ms net +-1 queue = 8.5 total [SV CommandQueue] [Tick 114375]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 111260. Margin: 7.6ms net +-1 queue = -8.0 total [SV CommandQueue] [Tick 114388]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 111273. Margin: 7.6ms net +-1 queue = -8.1 total [SV CommandQueue] [Tick 114413]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 111298. Margin: 7.3ms net +-1 queue = -8.3 total [SV CommandQueue] [Tick 114439]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 111324. Margin: 7.1ms net +-1 queue = -8.6 total [SV CommandQueue] [Tick 114452]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 111337. Margin: 6.7ms net +-1 queue = -8.9 total [SV CommandQueue] [Tick 114476]['mysteamname' empty starved x1=15.6ms ping=0ms] LATE Recv usercmd 111361. Margin: 9.0ms net +-1 queue = -6.7 total [SV CommandQueue] [Tick 114922]['mysteamname' depth=2 (111840..111841) ping=0ms] CQ bloat: removed 32, max: 32, 1 ticks this frame ```

i replaced my Steam user name with mysteamname

Ubuntu 22.04 LTS Ryzen 5 3600 32 GB RAM Nvidia GTX 1650

otherwise it runs fine for most of the rounds. there are no drops or stuttering. but again if there are too many rounds or starting new game without exiting CS2 this is what happens.

gregor3000 commented 3 months ago

WTH i set code for the console text. Ubuntu pastebin so it is easier to read : https://paste.ubuntu.com/p/Yvsb5JYX5s/

mxaddict commented 3 months ago

Can confirm this also happens on AMD GPU,

Game starts @500+ FPS second match, 400+, third match 200+ (with large stutters unplayable), etc...

Restarting the game fixes the issue, but it's a pain on maps with water as FPS gets lower faster on those maps.

ii7ussieN commented 2 months ago

This is unbearable, especially in mid-range systems, mine runs it fine on 140 - 80 fps, after one game, it drops to 40, while on windows it runs on 200 fps smoothly cs2 is the only reason im dualbooting windows

Fxzzi commented 2 months ago

fps also dropping here. Poor performance from CS2. I have a pretty good rig so I shouldn't be expecting this. Does not occur on windows.

t0ssox commented 2 months ago

I managed to find how to play CS2 without FPS drops.

  1. Install Steam Flatpak
  2. Download CS2
  3. Open cs2.sh in game directory with any text editor and replace _SDL_VIDEODRIVER=x11 with _SDL_VIDEODRIVER=wayland
  4. Start CS2 and you should enjoy stutter free experience.

If CS2 starts on another monitor I don't know if there is a way to fix this (just moving game window to another monitor forces Hz to value of monitor Hz where game was started). You need to unplug all monitors or make some smart bash script to disable monitors when CS2 is launching, and after reaching menu to plug monitors again. In my situation I don't have this issue with three monitor setup but I believe someone might have.

Also remember that forcing CS2 to run in Wayland makes the game unstable. You can expect a lot of crashes or alt tabbing sometimes kicks you out of the match. Wayland compatibility is still work in progress. Steam Overlay is not working.

This way it works for me on KDE Plasma 6.1.2 on Arch Linux with Wayland session.

nJ3ahxac commented 2 months ago

This is almost certainly the memory leak from https://github.com/ValveSoftware/csgo-osx-linux/issues/3687

Extravi commented 2 months ago

image

Extravi commented 2 months ago

steam support said we should submit the issue here: https://github.com/ValveSoftware/steam-for-linux/issues

mxaddict commented 2 months ago

Got some more info related to this maybe: https://github.com/ValveSoftware/csgo-osx-linux/issues/3808

I can the run the with more consistent performance when using amdvlk instead of vulkan-radeon package