2019-10-13 00:02:07 -06:00
|
|
|
namespace Ryujinx.Graphics.Gpu
|
|
|
|
{
|
2019-12-31 13:08:20 -07:00
|
|
|
/// <summary>
|
|
|
|
/// General GPU and graphics configuration.
|
|
|
|
/// </summary>
|
2019-10-13 00:02:07 -06:00
|
|
|
public static class GraphicsConfig
|
|
|
|
{
|
2020-07-06 20:41:07 -06:00
|
|
|
/// <summary>
|
|
|
|
/// Resolution scale.
|
|
|
|
/// </summary>
|
|
|
|
public static float ResScale = 1f;
|
|
|
|
|
2020-03-30 15:38:52 -06:00
|
|
|
/// <summary>
|
|
|
|
/// Max Anisotropy. Values range from 0 - 16. Set to -1 to let the game decide.
|
|
|
|
/// </summary>
|
2021-05-07 10:18:23 -06:00
|
|
|
public static float MaxAnisotropy = -1;
|
2020-03-30 15:38:52 -06:00
|
|
|
|
2019-12-31 13:08:20 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Base directory used to write shader code dumps.
|
|
|
|
/// Set to null to disable code dumping.
|
|
|
|
/// </summary>
|
2019-10-13 00:02:07 -06:00
|
|
|
public static string ShadersDumpPath;
|
|
|
|
|
2019-12-31 13:08:20 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Fast GPU time calculates the internal GPU time ticks as if the GPU was capable of
|
|
|
|
/// processing commands almost instantly, instead of using the host timer.
|
|
|
|
/// This can avoid lower resolution on some games when GPU performance is poor.
|
|
|
|
/// </summary>
|
2019-10-13 00:02:07 -06:00
|
|
|
public static bool FastGpuTime = true;
|
2020-08-02 19:36:57 -06:00
|
|
|
|
2022-02-22 07:21:29 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Enables or disables fast 2d engine texture copies entirely on CPU when possible.
|
|
|
|
/// Reduces stuttering and # of textures in games that copy textures around for streaming,
|
|
|
|
/// as textures will not need to be created for the copy, and the data does not need to be
|
|
|
|
/// flushed from GPU.
|
|
|
|
/// </summary>
|
|
|
|
public static bool Fast2DCopy = true;
|
|
|
|
|
2020-08-02 19:36:57 -06:00
|
|
|
/// <summary>
|
|
|
|
/// Enables or disables the Just-in-Time compiler for GPU Macro code.
|
|
|
|
/// </summary>
|
|
|
|
public static bool EnableMacroJit = true;
|
2020-11-12 16:15:34 -07:00
|
|
|
|
2021-08-26 15:50:28 -06:00
|
|
|
/// <summary>
|
|
|
|
/// Enables or disables high-level emulation of common GPU Macro code.
|
|
|
|
/// </summary>
|
|
|
|
public static bool EnableMacroHLE = true;
|
|
|
|
|
2020-11-12 16:15:34 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Title id of the current running game.
|
|
|
|
/// Used by the shader cache.
|
|
|
|
/// </summary>
|
|
|
|
public static string TitleId;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Enables or disables the shader cache.
|
|
|
|
/// </summary>
|
|
|
|
public static bool EnableShaderCache;
|
2019-10-13 00:02:07 -06:00
|
|
|
}
|
|
|
|
}
|