My transition to full on Linux gaming mostly went okay, but recently I’ve started running into some issues with more demanding games. In games like Cyberpunk 2077, Stalker 2, and inZOI I sometimes get KDE and/or Wayland crashes when the VRAM runs out. In Cyberpunk I can avoid it by not enabling RTX, which is fine. But Stalker 2 and inZOI are basically all-in on raytracing and therefore seem to also fully eat up my 8GB of VRAM.

Is there any way of constraining the games to like 7.5 GB or something? Because they seem to actively work to stay below 8GB, so clearly there is still stuff they can clean up. And even if they’d go over the limit, I’d prefer the game to crash rather than basically having Wayland restart, losing everything I had open. I’m curious for you experiences

  • Virkkunen@fedia.io
    link
    fedilink
    arrow-up
    5
    ·
    7 hours ago

    From my understanding, with Nvidia there’s no shared memory on Linux, so when your VRAM maxes out, you get a crash or your game will run in single digit frames.

    There is nothing to be done except lowering textures and other VRAM intensive settings, and hoping that one day Nvidia fixes the no shared memory issue.

    (I’m assuming you have a Nvidia GPU solely based on those low VRAM numbers)

  • off@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    11 hours ago

    It shouldn’t. You can even use vram as swap and max it out.

    because it crashes when maxed out instead of just killing the game I assume you’re on nvidia? It should just kill the game, I know nvidia had some issues releasing vram with stuff running in wine for years.

  • Matty_r@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    12 hours ago

    Kinda, I have this issue with Diablo 4. It might with work other games that use dxvk, but you van try creating a config file in the same directory as the executable:

    “dxvk.conf” with the following lines: dxgi.maxDeviceMemory=8192 dxgi.maxSharedMemory=8192

    Worth a shot.

  • cdegroot@lemmy.ca
    link
    fedilink
    English
    arrow-up
    5
    ·
    18 hours ago

    Lower settings. Sorry, thats all there is to it. 8GB is not a lot these days (i have two older cards in my PC and they’re both 12). Textures, screen resolution, there’s a bunch you can do.

    Crashes are unavoidable, given that everyone wants max performance everywhere, things get shipped with all the debugging and checking stripped.

  • Maiq@lemy.lol
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    20 hours ago

    Never had this happen on my setup. Have a nv3080 optimus with integrated AMD GPU though.

    I don’t think I can help per say but it might help others if they knew a bit more about your setup.

    1. Distro
    2. Nvidia driver version nivida-smi
    3. Kernel version uname -a
    4. Plasma version plasmashell --version
    5. KDE version Kf5-config --version

    Those bits might help.