Store frame_limit config value as a double

This allows fractional values to be used for the game speed
This commit is contained in:
OpenSauce04 2024-08-22 00:29:43 +01:00 committed by OpenSauce
parent 9298e1d237
commit 3188aa489f

View File

@ -477,7 +477,7 @@ struct Values {
SwitchableSetting<bool> use_vsync_new{true, "use_vsync_new"};
Setting<bool> use_shader_jit{true, "use_shader_jit"};
SwitchableSetting<u32, true> resolution_factor{1, 0, 10, "resolution_factor"};
SwitchableSetting<u16, true> frame_limit{100, 0, 1000, "frame_limit"};
SwitchableSetting<double, true> frame_limit{100, 0, 1000, "frame_limit"};
SwitchableSetting<TextureFilter> texture_filter{TextureFilter::None, "texture_filter"};
SwitchableSetting<TextureSampling> texture_sampling{TextureSampling::GameControlled,
"texture_sampling"};