csgo-osx-linux
csgo-osx-linux copied to clipboard
CS2 VRAM leak
CS2 has a major VRAM leak, resulting in various texture pop-in issues and performance issues. Screenshot below was taken while doing 1080p low settings.
I feel the same way, on most times I "feel" the framerate lowering on a long match on inferno. I ended up lowering many video settings, it feels like its gone now, not sure if its caused by a specific setting on med/high or if I just have now more time to play until the leak reached my limits.
Could you include your System Information and some steps to reproduce as per the instructions in the GitHub issue template? Providing this information is crucial for the developers to accurately reproduce and address the problem you're experiencing.
Your system information
My system informations: https://gist.github.com/itouchdennis/b3bfa12c843fe1d71d99ff274cc4285d
- Have you checked for system updates?: [Yes/No] yes
Please describe your issue in as much detail as possible:
Playing CS2 on linux with high settings brings game to stuttering after a while of play, huge FPS drops from around 250 to 60, little stuttering, most noticeable after a long match on inferno (most after around 18 Rounds) but also sometimes on other maps after a while of playing.
MSAA x2 (or csmaa2 - does not really matter) Shadow: high Texture: high Filtering: 4x Shader Detail: high Particle Detail: high Ambient Occlusion On (or disabled, does not seems to matter much) HDR: Quality FidelityFX: Disabled
(Resolution: 3440x1440 - but it should not matter that much, maybe just will speed the process up)
Setting these settings to low will reduce the framedrops: Texture: low Particle: low Ambient Occlusion: Disabled
Does not happen on windows for me.
Steps for reproducing this issue:
- Start game
- Graphic settings as above
- Play some Premier (MM would work also I guess) usually FPS are above 220 - 280 - even on inferno, but after a while the game stutters, most noticeable when holding an AWP or Scout, framerate drops below 180 and will dip often lower, sometimes fps lagspikes to 80 FPS, going back to 180, which feels really weird and not smooth
- Restarting the game and steam will not help - lowering some settings will help
pretty much exactly the last message, but my machines video card (nvidia rtx 3050ti mobile) has only 4gb of vram which significantly hinders my long term playability. im already using around 3.5gbvram on launching to the menu alone, which may be related or might not.
Sniper Symptom demonstration - https://github.com/ValveSoftware/csgo-osx-linux/issues/3339
Sniper Symptom demonstration - #3339
Might or might not be related. This issue seems like to also happens without a sniper, had it these days on inferno when some molotows and smokes where around. Having a sniper with FPS issues feels just more strange, and it was like the "turn msaa to csmaa2" issue, if the games starts stuttering and having not stable FPS zooming in the first time on the e.g. AWP will let the FPS drop from 180 to 60-80 FPS the first time, it seems like this kind of shader animation is been cached for a while, its not happening the second time scoping in, but waiting some seconds, running around the map and then scope again in, it makes the FPS drop down below 100 again, which feels very weird.
Solution for my last 10 matches where to lower the settings I mentioned above, since then I do not have any trouble and I don't see any huge differences (Besides the highly accurate shadow ambient occlusion brings into the game, thats a small - point for me here)
Related: #3352, #3294. Both are about high (er than intended?) video memory usage
The stuttering issue when scoping in is likely because the game is traversing the PCIe bus into system memory. I can see spikes upto 71% that lines up with the stutters, anyway.
So @kisak-valve you said Valve is supporting Linux. Where's the support?
So @kisak-valve you said Valve is supporting Linux. Where's the support?
It's crucial to clarify that kisak_valve focus on labeling and refining GitHub issues. They're not involved in game development.
As for the issue, they will address the issue once they find a solution. Not all problems can be solved overnight.
Anecdotally heard that this symptom is demonstrating in Windows as well.
Another Windows user documentation - https://github.com/ValveSoftware/csgo-osx-linux/issues/3339#issuecomment-1758766161
Can confirm the issue on my side, I've been playing deathmatch for 10 minutes and this is the situation (this is endlessly spammed btw)
after the 10 minutes the console is not very usable since there's just spam of the "out of memory messages"
For reference here's the game after just loading in the same deathmatch map
The second game I play has weird texturing issues where they'll just pop in and out and the third already starts having frame pacing issues
I saw the same logs as @CatalinPuscoci
Here is my paste - https://gist.github.com/KenTheWhaleGoddess/c44fffc865999c9eb59633fd8057635a
My machine is:
- Ryzen 5800X
- 32 GB RAM
- RTX 3070 (G-Sync on, 535.113.01 driver)
- New Linux Mint 21.2 install (I've tested vanilla kernel and 6.2 too)
- 1440p FreeSync screen
- Tested it on every public build since CS2 launched, still an issue at 26/10/2023
The first rounds the game works flawlessly, everything is so smooth but the more time I keep the game open, the more stuttering and random framerate drop I get. Doesn't matter the map I'm playing, happens on every one.
I can set all the settings to the max (with 4x MSAA) but textures on Low and it will remove almost all framedrops. There's something wrong with textures management.
On Windows everything works perfectly.
Is this getting fixed or not?
Is this getting fixed or not?
Latest update seems to offer a better experience, but I still get "out of memory" spam. It's not constant though. Something is better about it.
agreed, this is not consistent anymore. sometimes it lags at other times it does not at all.
game runs ever so slightly better for me, but im still capping out vram usage.
also my gpu utilisation is WAY down with this last update
Can anything be done to reduce VRAM usage? I feel like 1080/1080i should be able to handle cs at low resolutions ?
Probably connected with #3310 For me VRAM leak doesn't happen anymore. Video memory now frees properly after exiting to menu. Textures' resolutions are always high resolution. But my problem may be different from the one @itouchdennis described, since I could fix everything with restarting CS2
After installing new RAM (16gb -> 48gb) this issue's most prominent symptoms significantly decreased.
After installing new RAM (16gb -> 48gb) this issue's most prominent symptoms significantly decreased.
Mine was the "parallel way along", I upgraded the GPU and it seems to stop eating VRAM after like 12-14GB
After installing new RAM (16gb -> 48gb) this issue's most prominent symptoms significantly decreased.
Mine was the "parallel way along", I upgraded the GPU and it seems to stop eating VRAM after like 12-14GB
its steel happend .... after couple of rounds somthimes in begining
If you have only 8 GB VRAM and you're interested in worst latency spikes (as you should, IMO), you really cannot max settings, especially the texture. This game seems to use 9–10 GB VRAM with maxed out settings and you really really do not want to run out of VRAM for max performance.
I am playing on low settings , after 20 mins VRAM is maxed out and models are RED.
On Sun, 3 Dec 2023 at 12:16, Mikko Rantalainen @.***> wrote:
If you have only 8 GB VRAM and you're interested in worst latency spikes (as you should, IMO), you really cannot max settings, especially the texture. This game seems to use 9–10 GB VRAM with maxed out settings and you really really do not want to run out of VRAM for max performance.
— Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/csgo-osx-linux/issues/3498#issuecomment-1837433550, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWIPNBGRBNZYOVX4S7LVQA3YHRGO7AVCNFSM6AAAAAA6CZ6FS2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGQZTGNJVGA . You are receiving this because you commented.Message ID: @.***>
Replying to https://github.com/ValveSoftware/csgo-osx-linux/issues/3498#issuecomment-1837478082
Yeah in my case its happens when i buy weapons on half of secound model is red and game send to me lack of vram memory
After few matches on Casual the vram was so overloaded that textures didnt load correcly
Sorry for being a bit off-topic, but what programs do you use to view VRAM in-game? I look at the VRAM from the CPU-X application on another monitor. I have a graphic card with 8GB of VRAM, and it used to overflow when playing 2 or 3 games.
@DanielHuelsmann Mangohud
@BlueGoliath Seems to be fixed for me with latest update, can you confirm as well?
It hasn't been fixed.
Overall usage:
Process usage: