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

2 GB of VRAM is not enough to run the game acceptably on Linux (it is on Windows, though)

Open guihkx opened this issue 2 years ago • 10 comments

Your system information

  • System information from steam: https://gist.github.com/guihkx/ab9e0783140a946e0d2277b9a012f42b/raw/ec39950d20e79fd8ad067556528c304452d91490/info.txt
  • Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

The Steam Store states the following as the minimum GPU requirement for this game on Linux:

  • "NVIDIA Kepler+ with up-to-date Vulkan drivers"

I do have a Kepler card (GTX 660), however, due to its arguably low amount of VRAM (2 GB) it's currently impossible to play CS2 on Linux with acceptable performance.

The developer console of CS2 is frequently spammed with this message whenever I'm on a match:

[RenderSystem] vmaAllocateMemory failed for DEVICE_LOCAL memory indicating video memory is full, trying again in system memory as a fallback.

Conversely, I also have Windows 10 on this machine (via dual boot), and I can play CS2 just fine there using the D3D11 renderer. In fact, I can also play on Windows using the Vulkan renderer, although I do get some occasional stutter and worse performance overall.

So, my kind suggestion to CS2 developers would be either specifying the minimum amount of VRAM required to make this game run acceptably on Linux (3 GB, perhaps?), or even better, improving the Vulkan renderer on Linux to benefit GPUs with low amounts of VRAM.

Steps for reproducing this issue:

  1. Own an NVIDIA card with 2 GB of VRAM
  2. Launch CS2
  3. Join matchmaking (e.g deathmatch)
  4. Open the developer console and observe incoming messages

Besides experiencing constant stuttering, you should also notice the following message showing up rather frequently in the console:

[RenderSystem] vmaAllocateMemory failed for DEVICE_LOCAL memory indicating video memory is full, trying again in system memory as a fallback.

Screenshots (Linux, Vulkan)

csgo-advanced-video-settings

csgo-ingame-171

csgo-ingame-85

Screenshots (Windows, D3D11)

cs2_2023_09_29_13_54_32_436

cs2_2023_09_29_13_58_47_837

Screenshots (Windows, Vulkan)

cs2_2023_09_29_14_11_17_563

cs2_2023_09_29_14_22_57_573

guihkx avatar Sep 29 '23 19:09 guihkx

It also happens with me, the thing is that it freezes the entire system and the only way to continue using it is by rebooting.

koritar-aqg avatar Sep 30 '23 14:09 koritar-aqg

Can confirm. Even the lowest settings give poor performance with a gtx 660 on Vulkan and it's the only way to play on Linux. Also the game has a really weird input lag problem, it's like it's reading my input like twice a second. When moving my mouse, camera is very stuttery, while everything else is much smoother. I am seeing benchmarks of this exact card, supposedly on dx11, and it gives solid 60+ frames on medium, which really tells that it's not normal

Qunas101 avatar Sep 30 '23 22:09 Qunas101

I am experiencing similar issues, but cannot get to a console to see any output. My game freezes completely 10-15 seconds after launch and I have to reboot the machine to unfreeze anything.

System info from Steam: https://gist.github.com/nic0machus/ffe6f3ad0751e6bf4ccbd7a761388a7c

I am using a GeForce MX150 with Pascal and 2GB of VRAM and an Intel i7-8550U CPU @ 1.80GHz

It worked fine the first night of release, but I have not been able to boot the game without freezing since yesterday morning.

nic0machus avatar Sep 30 '23 22:09 nic0machus

Hello @nic0machus, your game freeze is NVIDIA 525 series driver specific and being tracked at #3273.

kisak-valve avatar Sep 30 '23 22:09 kisak-valve

Hello @nic0machus, your game freeze is NVIDIA 525 series driver specific and being tracked at #3273.

Thank you. The 535 driver would not launch the game at all as of yesterday. I will try it again.

nic0machus avatar Sep 30 '23 22:09 nic0machus

+1 my system info :https://gist.github.com/failafail8/528f3d6295c32b52661496d5775da542 notable differences: -steam from distro repo -nvidia driver 535 i have the exact same issues as described on the post.

failafail8 avatar Oct 01 '23 05:10 failafail8

might be causing #3341

s6fty avatar Oct 01 '23 21:10 s6fty

+1 experience with

Nvidia 535, Linux Mint 64 bit Kernel 6.2.1

steam from sudo apt-get install steam

KenTheWhaleGoddess avatar Oct 03 '23 11:10 KenTheWhaleGoddess

Experiencing this issue, including the [RenderSystem] vmaAllocateMemory failed for DEVICE_LOCAL memory indicating video memory is full, trying again in system memory as a fallback. message in the console on both Linux and Windows with the -vulkan launch option using a GTX 1050 with 2GB of VRAM. Direct3D renderer works okay.

AdrUlb avatar Nov 05 '23 18:11 AdrUlb

Are there any changes?

pavlokozlenko avatar Jul 09 '24 12:07 pavlokozlenko

The fact is that Windows has swap file technology for VRAM, so the game works great on this platform. In Linux, you need at least 4 gigabytes of VRAM. Vulkan seems to be able to swap a file for VRAM, for nvidia it's like Unified Memory, but it doesn't work well. Apparently, this is the game itself crooked. I'm disappointed in cs2. A company that relies on Linux has all its games for this platform, but at the same time, to hammer the bolt under cs2 on linux is bravo. I would play under a proton, but anti-cheat doesn't work there. Thanks valve

pavlokozlenko avatar Dec 05 '24 23:12 pavlokozlenko

I am encountering the same issue :

  • GTX 960
  • 16Gb RAM, i5
  • Mint 20.2 / Vulkan 1.3.283
  • All video configuration at the minimum

50FPS max

[RenderSystem] vmaAllocateMemory failed for DEVICE_LOCAL memory indicating video memory is full, trying again in system memory as a fallback.

marcT21 avatar Jan 17 '25 12:01 marcT21