GraphicsConfig.cs 2.4 KB

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