csgo-osx-linux icon indicating copy to clipboard operation
csgo-osx-linux copied to clipboard

CS2 Linux: high vram usage causing models and textures to break after a few map loads

Open sylveonsylvia opened this issue 1 year ago • 16 comments

system info: https://gist.github.com/sylveonsylvia/ae85dc0a89f18e7927effb2354a9e148

cs2 seems has a memory leak in vram causing the game to use up to 7gb of vram Screenshot_20230928_175924

eventually the game starts complaining about not having enough memory to stream textures in the console image

and models to become tinted in either red or green Screenshot_20230928_083855

sylveonsylvia avatar Sep 28 '23 08:09 sylveonsylvia

this also happens on windows with the -vulkan flag

sylveonsylvia avatar Sep 28 '23 08:09 sylveonsylvia

Might have a similar issue. First main menu loads fine, no errors in console, 60+ FPS. But if I load a map, then exit back to main menu it gets down to <10 FPS and the game prints a bunch of low VRAM errors in the console

stolkovandrew avatar Sep 28 '23 08:09 stolkovandrew

Might have a similar issue. First main menu loads fine, no errors in console, 60+ FPS. But if I load a map, then exit back to main menu it gets down to <10 FPS and the game prints a bunch of low VRAM errors in the console

I don't have such a drastic FPS drop but I also experience FPS going down slowly the more I play, after several minutes of gameplay I go from 200 FPS to just about 60

SolsticeSpectrum avatar Sep 28 '23 15:09 SolsticeSpectrum

I have also just experienced this. Originally on Italy and then after the map changed to Office the problem occurred. Green or black textures on various models.

rcannizzaro avatar Sep 30 '23 13:09 rcannizzaro

I've just experienced this as well. I have a 6GBs GPU (RTX 2060 Max-Q) and it looks like CS2 is using all of its VRAM, since I think the remaining 700-800MBs are reserved to the system. 20230930174537_1

ShyVortex avatar Sep 30 '23 15:09 ShyVortex

yeah i have only issue with FSR not working actually.

ilievi187 avatar Sep 30 '23 15:09 ilievi187

I experience this after one map. 8GB vram and 7.1-7.3 GB used. But as a bonus I see this artefact in my inventory as well in addition to the green textures.

GPU is RX 5700XT and mesa is 23.2.1

image

image

parona-source avatar Sep 30 '23 16:09 parona-source

On medium and high settings, my RTX 2060 6GB VRAM usage is on 100% when CS2 being opened, it's kinda surprising because Dota 2's Vulkan doesn't have this issue, while on low, it hover around 60~70% VRAM usage

deanrih avatar Oct 02 '23 02:10 deanrih

Also get this problem. Last week I had only blurry textures for a moment when I turn and look at them. As you can see, textures were slowly disappearing during one deathmatch game Screenshot_20231005_032919 Screenshot_20231005_033513 Screenshot_20231005_033505

cjvth avatar Oct 04 '23 20:10 cjvth

I have been seeing this issue almost every time I've played the game since launch after a session exceeds about an hour, maybe less.

I've most commonly seen this in the advanced video settings screen or on skins as seen in the comments above, but on a single occasion I saw a bunch of textures on Vertigo suddenly become yellow during a match. I also suspect it is the cause of huge 10-20 second lag spikes that happen every now and then where the framerate drops to about 15 and all of the textures rapidly change between their low quality and high quality versions, with warnings about lack of VRAM in the console

[RenderSystem] TEXTURESTREAMING: Extremely low memory: Available mem: 4.49 MB, Required: 98.20 MB.
[RenderSystem] rendersystem (Vulkan) tracked resources:
[RenderSystem]   VB: 2205 buffers, 411.32 MB
[RenderSystem]   IB: 1766 buffers, 150.45 MB
[RenderSystem]   CB: 7000 buffers, 5.37 MB
[RenderSystem]   TEX: 5817 textures, 1988.65 MB
[RenderSystem]   FRAGMENTATION: 0.00 MB
[RenderSystem]   EXTERNAL: 0.00 MB
[RenderSystem]   TOTAL: 2555.79 MB
[RenderSystem] Texture Streaming:
[RenderSystem]   1,988 / 1,404 MB (non-evictable: 867 MB)
[RenderSystem] Overall System GPU memory use:
[RenderSystem]   6,528 / 7,397 MB
[RenderSystem] TEXTURESTREAMING: Extremely low memory: Available mem: 67.76 MB, Required: 111.97 MB.
[RenderSystem] rendersystem (Vulkan) tracked resources:
[RenderSystem]   VB: 2205 buffers, 411.32 MB
[RenderSystem]   IB: 1766 buffers, 150.45 MB
[RenderSystem]   CB: 7009 buffers, 5.37 MB
[RenderSystem]   TEX: 5847 textures, 1920.56 MB
[RenderSystem]   FRAGMENTATION: 0.00 MB
[RenderSystem]   EXTERNAL: 0.00 MB
[RenderSystem]   TOTAL: 2487.70 MB
[RenderSystem] Texture Streaming:
[RenderSystem]   1,920 / 1,404 MB (non-evictable: 872 MB)
[RenderSystem] Overall System GPU memory use:
[RenderSystem]   6,528 / 7,400 MB
[Developer] vCompMat update exceeded 0.020 seconds! [weapons/paints/legacy/so_red.vcompmat]
[RenderSystem] TEXTURESTREAMING: Extremely low memory: Available mem: 53.48 MB, Required: 119.57 MB.
[RenderSystem] rendersystem (Vulkan) tracked resources:
[RenderSystem]   VB: 2209 buffers, 411.32 MB
[RenderSystem]   IB: 1770 buffers, 150.45 MB
[RenderSystem]   CB: 6985 buffers, 5.37 MB
[RenderSystem]   TEX: 5828 textures, 1936.25 MB
[RenderSystem]   FRAGMENTATION: 0.00 MB
[RenderSystem]   EXTERNAL: 0.00 MB
[RenderSystem]   TOTAL: 2503.38 MB
[RenderSystem] Texture Streaming:
[RenderSystem]   1,936 / 1,404 MB (non-evictable: 874 MB)
[RenderSystem] Overall System GPU memory use:
[RenderSystem]   6,528 / 7,401 MB
[RenderSystem] TEXTURESTREAMING: Extremely low memory: Available mem: 74.79 MB, Required: 97.04 MB.
[RenderSystem] rendersystem (Vulkan) tracked resources:
[RenderSystem]   VB: 2210 buffers, 411.32 MB
[RenderSystem]   IB: 1771 buffers, 150.45 MB
[RenderSystem]   CB: 6979 buffers, 5.36 MB
[RenderSystem]   TEX: 5823 textures, 1920.19 MB
[RenderSystem]   FRAGMENTATION: 0.00 MB
[RenderSystem]   EXTERNAL: 0.00 MB
[RenderSystem]   TOTAL: 2487.33 MB
[RenderSystem] Texture Streaming:
[RenderSystem]   1,920 / 1,404 MB (non-evictable: 876 MB)
[RenderSystem] Overall System GPU memory use:
[RenderSystem]   6,528 / 7,416 MB
[RenderSystem] TEXTURESTREAMING: Extremely low memory: Available mem: 61.05 MB, Required: 94.30 MB.
[RenderSystem] rendersystem (Vulkan) tracked resources:
[RenderSystem]   VB: 2213 buffers, 411.32 MB
[RenderSystem]   IB: 1774 buffers, 150.45 MB
[RenderSystem]   CB: 6980 buffers, 5.36 MB
[RenderSystem]   TEX: 5825 textures, 1933.93 MB
[RenderSystem]   FRAGMENTATION: 0.00 MB
[RenderSystem]   EXTERNAL: 0.00 MB
[RenderSystem]   TOTAL: 2501.06 MB
[RenderSystem] Texture Streaming:
[RenderSystem]   1,933 / 1,404 MB (non-evictable: 876 MB)
[RenderSystem] Overall System GPU memory use:
[RenderSystem]   6,528 / 7,426 MB

OpenSauce04 avatar Oct 09 '23 21:10 OpenSauce04

as of a recent update, the model issue seems to be fixed but the game still sometimes complains about being out of memory for streaming

sylveonsylvia avatar Oct 13 '23 00:10 sylveonsylvia

**** Panel id-sb-name__nameicons has fill-parent-flow for width, but isn't in a flowing right layout
**** Panel  has fill-parent-flow for height, but isn't in a flowing down or up layout
[RenderSystem] TEXTURESTREAMING: Extremely low memory: Available mem: 0.00 MB, Required: 71.45 MB.
[RenderSystem] rendersystem (DX11) tracked resources:
[RenderSystem]   VB: 1458 buffers, 426.03 MB
[RenderSystem]   IB: 1032 buffers, 221.72 MB
[RenderSystem]   CB: 12617 buffers, 6.29 MB
[RenderSystem]   TEX: 5554 textures, 2210.11 MB
[RenderSystem]   FRAGMENTATION: 0.00 MB
[RenderSystem]   EXTERNAL: 0.00 MB
[RenderSystem]   TOTAL: 2864.16 MB
[RenderSystem] Texture Streaming:
[RenderSystem]   2,210 / 1,465 MB (non-evictable: 876 MB)
[RenderSystem] Overall System GPU memory use:
[RenderSystem]   2,749 / 2,943 MB
Unknown command: sellback

dunxuan avatar Oct 27 '23 06:10 dunxuan

Same issue. Fedora 39, Mesa 23.2.1 - 5700xt

Nuke vents are impossible to navigate a few rounds into a match because it's solid black.

DeathTBO avatar Nov 30 '23 07:11 DeathTBO

Still there is problems with High Vram usage RX7600 20231223225407_1

ZeroYamaoka avatar Dec 23 '23 22:12 ZeroYamaoka

Latest update fixed this issue for me

SolsticeSpectrum avatar Jan 06 '24 21:01 SolsticeSpectrum

https://github.com/ValveSoftware/csgo-osx-linux/issues/3498#issuecomment-1890394932

programmeter avatar Jan 13 '24 09:01 programmeter

Closing as the misrendering appears to be resolved. There's multiple other issue reports tracking the game's VRAM usage.

kisak-valve avatar Mar 02 '24 01:03 kisak-valve