Profiled Persistent Translation Cache

The Profiled Persistent Translation Cache in Ryujinx is a feature that improves performance by storing and reusing previously translated shaders. When a Nintendo Switch game runs on Ryujinx, it needs to translate the game’s graphics shaders (instructions that dictate how graphics are rendered) from the Switch’s language into something the PC’s GPU can understand.

Table of Contents

How PPTC Works
Benefits of PPTC
How to Enable/Disable PPTC

How Profiled Persistent Translation Cache Works

  • Shader Caching: As you play a game, Ryujinx translates shaders in real-time and stores these translations in a cache.
  • Persistent Storage: With the persistent cache, these translations are saved even after you close the game or emulator, so the next time you play, Ryujinx can reuse them instead of translating from scratch.
  • Profiling for Accuracy: The “profiled” aspect of this cache means Ryujinx optimizes the cache based on which shaders are actually needed, ensuring that unnecessary or unused shaders don’t clog up the cache. This makes the cache more efficient and targeted, reducing stuttering when reloading shaders.

Benefits of Profiled Persistent Translation Cache

  • Reduced Stuttering: By reusing shaders, Ryujinx avoids having to recompile them, which significantly reduces stuttering during gameplay.
  • Faster Load Times: The game can start with many shaders pre-compiled, so there’s less need for on-the-fly translation.
  • Improved Performance: Overall gameplay becomes smoother, especially in shader-intensive games.

How to Enable/Disable PPTC on Ryujinx

NOTE: You must launch the game at least twice and let it load to the title screen or beyond before performance improvements are unlocked on the third launch! These improvements are permanent and do not require any extra launches going forward.

PPTC (Profiled Persistent Translation Cache) is now enabled by default. To disable it:

  • With Ryujinx open, click on Options > Settings
  • Navigate to the CPU tab and deselect PPTC, hit apply to disable.