GraphicsConfig.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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;
  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. /// Title id of the current running game.
  33. /// Used by the shader cache.
  34. /// </summary>
  35. public static string TitleId;
  36. /// <summary>
  37. /// Enables or disables the shader cache.
  38. /// </summary>
  39. public static bool EnableShaderCache;
  40. }
  41. }