Home » How to fix graphics stuttering in Linux games using DXVK cache
Gaming Tech

How to fix graphics stuttering in Linux games using DXVK cache

✨ Quick Answer

Graphic stuttering when playing Windows titles on Linux through Proton or Wine occurs because the games' DirectX graphics calls are translated to the open Vulkan API in real time using the DXVK library. This generates a CPU consumption spike to compile each new texture shader the first time it is displayed on screen.

Quick Diagnostics

Cause
DXVK shader compilation occurring in real-time during gameplay
Solution
Enable async shader compilation via DXVK_ASYNC=1 variable
Cause
Corrupted shader cache inside Steam prefix directory
Solution
Clear shadercache directory contents and rebuild cache

Graphic stuttering when playing Windows titles on Linux through Proton or Wine occurs because the games' DirectX graphics calls are translated to the open Vulkan API in real time using the DXVK library. This generates a CPU consumption spike to compile each new texture shader the first time it is displayed on screen.

Step-by-Step Solution

  1. 1

    Step 1: Activar la compilación asíncrona de shaders en Proton/Steam

    If you play titles running under DirectX 11 or DirectX 9, you can tell DXVK to load shaders asynchronously in the background by adding variables to Steam launch options:

    BASH
    # Activar la traducción gráfica asíncrona de fondo
    DXVK_ASYNC=1 %command%
    
  2. 2

    Step 2: Configurar la compilación de shaders por hardware (GPL)

    On modern NVIDIA and AMD drivers (with support for the Vulkan Graphics Pipeline Library extension), add environmental variables to speed up rendering:

    BASH
    # Forzar compilación paralela de la GPU
    dxvk.enableGraphicsPipelineLibrary = True __GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1 %command%
    
  3. 3

    Step 3: Optimizar los controladores de video Mesa

    If you use AMD graphics cards, make sure to enable the high-performance texture shader RADV compiler:

    BASH
    # Forzar el compilador RADV en lugar de opciones antiguas
    RADV_PERFTEST=aco %command%
    

Prevention Advice

Recommended security practices:

  • Avoid repeatedly deleting GPU shader cache folders (~/.nv or ~/.cache) using automatic system cleaning tools before starting your games. Deleting these temporary files will force your graphics card to recompile all three-dimensional elements from scratch, reintroducing the annoying FPS stutters in your next game session.
Author • Web Designer & App Creator

Rodolfo Castro

Web designer, app developer, and founder of SoporteCero. Specializing in UI/UX architecture, digital products, and modern web environments. Every tutorial and guide on SoporteCero is thoroughly tested and verified in our technical lab to ensure reliable, up-to-date solutions.