GraphicsConfig.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 the Just-in-Time compiler for GPU Macro code.
  29. /// </summary>
  30. public static bool EnableMacroJit = true;
  31. /// <summary>
  32. /// Enables or disables vertex buffer size detection from the index buffer, for indexed draws.
  33. /// </summary>
  34. public static bool EnableIndexedVbSizeDetection = true;
  35. /// <summary>
  36. /// Title id of the current running game.
  37. /// Used by the shader cache.
  38. /// </summary>
  39. public static string TitleId;
  40. /// <summary>
  41. /// Enables or disables the shader cache.
  42. /// </summary>
  43. public static bool EnableShaderCache;
  44. }
  45. }