GraphicsConfig.cs 2.7 KB

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