settings: Enable FIFO relaxed

Not entirely sure if we need this, but there's also no reason not to
support it.

settings: Give VSyncMode values
This commit is contained in:
lat9nq 2023-05-01 20:22:37 -04:00
parent bd25f22842
commit 2cca81495e
2 changed files with 10 additions and 7 deletions

View file

@ -17,9 +17,10 @@
namespace Settings {
enum class VSyncMode : u32 {
Immediate,
FIFO,
Mailbox,
Immediate = 0,
Mailbox = 1,
FIFO = 2,
FIFORelaxed = 3,
};
enum class RendererBackend : u32 {
@ -461,8 +462,8 @@ struct Values {
SwitchableSetting<NvdecEmulation> nvdec_emulation{NvdecEmulation::GPU, "nvdec_emulation"};
SwitchableSetting<bool> accelerate_astc{true, "accelerate_astc"};
SwitchableSetting<bool> async_astc{false, "async_astc"};
Setting<VSyncMode, true> vsync_mode{VSyncMode::FIFO, VSyncMode::Immediate, VSyncMode::Mailbox,
"use_vsync"};
Setting<VSyncMode, true> vsync_mode{VSyncMode::FIFO, VSyncMode::Immediate,
VSyncMode::FIFORelaxed, "use_vsync"};
SwitchableSetting<ShaderBackend, true> shader_backend{ShaderBackend::GLSL, ShaderBackend::GLSL,
ShaderBackend::SPIRV, "shader_backend"};
SwitchableSetting<bool> use_asynchronous_shaders{false, "use_asynchronous_shaders"};