Nouveau NVC0 Shader Disk Cache Lands For Speeding Up Game Load Times

Mark Menzynski who is part of the Red Hat crew working on the open-source Nouveau driver finally saw his shader disk caching patches merged.
This allows bypassing shaders from being recompiled on subsequent game/application loads if the shader cache keys match and the comparison test passes.
This leads to much faster load times - when Mark was testing a "bunch of shaders" it went from taking over three minutes to now just 23 seconds thanks to being able to avoiding the expensive recompilation process.
The code is enabled by default for the NVC0 driver in Mesa Git ahead of next quarter's Mesa 20.3 release. The other common Mesa drivers have been making use of this on-disk shader cache for some time to great success particularly for frequent Linux gamers.
8 Comments