/ src / Ryujinx.Graphics.Gpu / GraphicsConfig.cs
GraphicsConfig.cs
 1  namespace Ryujinx.Graphics.Gpu
 2  {
 3  #pragma warning disable CA2211 // Non-constant fields should not be visible
 4      /// <summary>
 5      /// General GPU and graphics configuration.
 6      /// </summary>
 7      public static class GraphicsConfig
 8      {
 9          /// <summary>
10          /// Resolution scale.
11          /// </summary>
12          public static float ResScale = 1f;
13  
14          /// <summary>
15          /// Max Anisotropy. Values range from 0 - 16. Set to -1 to let the game decide.
16          /// </summary>
17          public static float MaxAnisotropy = -1;
18  
19          /// <summary>
20          /// Base directory used to write shader code dumps.
21          /// Set to null to disable code dumping.
22          /// </summary>
23          public static string ShadersDumpPath;
24  
25          /// <summary>
26          /// Fast GPU time calculates the internal GPU time ticks as if the GPU was capable of
27          /// processing commands almost instantly, instead of using the host timer.
28          /// This can avoid lower resolution on some games when GPU performance is poor.
29          /// </summary>
30          public static bool FastGpuTime = true;
31  
32          /// <summary>
33          /// Enables or disables fast 2d engine texture copies entirely on CPU when possible.
34          /// Reduces stuttering and # of textures in games that copy textures around for streaming,
35          /// as textures will not need to be created for the copy, and the data does not need to be
36          /// flushed from GPU.
37          /// </summary>
38          public static bool Fast2DCopy = true;
39  
40          /// <summary>
41          /// Enables or disables the Just-in-Time compiler for GPU Macro code.
42          /// </summary>
43          public static bool EnableMacroJit = true;
44  
45          /// <summary>
46          /// Enables or disables high-level emulation of common GPU Macro code.
47          /// </summary>
48          public static bool EnableMacroHLE = true;
49  
50          /// <summary>
51          /// Title id of the current running game.
52          /// Used by the shader cache.
53          /// </summary>
54          public static string TitleId;
55  
56          /// <summary>
57          /// Enables or disables the shader cache.
58          /// </summary>
59          public static bool EnableShaderCache;
60  
61          /// <summary>
62          /// Enables or disables shader SPIR-V compilation.
63          /// </summary>
64          public static bool EnableSpirvCompilationOnVulkan = true;
65  
66          /// <summary>
67          /// Enables or disables recompression of compressed textures that are not natively supported by the host.
68          /// </summary>
69          public static bool EnableTextureRecompression = false;
70  
71          /// <summary>
72          /// Enables or disables color space passthrough, if available.
73          /// </summary>
74          public static bool EnableColorSpacePassthrough = false;
75      }
76  #pragma warning restore CA2211
77  }