1
0
forked from 0ad/0ad

Allow to cap FPS up to the current max refresh rates of gaming screens: 360Hz

Patch by: @OptimusShepard
Reviewed by: @vladislavbelov
Differential Revision: https://code.wildfiregames.com/D4366
This was SVN commit r26207.
This commit is contained in:
Stan 2022-01-13 14:30:23 +00:00
parent 712b7ebf9a
commit a2ab6b9b72
2 changed files with 3 additions and 3 deletions

View File

@ -141,7 +141,7 @@
"tooltip": "To save CPU workload, throttle render frequency in all menus. Set to maximum to disable throttling.",
"config": "adaptivefps.menu",
"min": 20,
"max": 100
"max": 360
},
{
"type": "slider",
@ -149,7 +149,7 @@
"tooltip": "To save CPU workload, throttle render frequency in running games. Set to maximum to disable throttling.",
"config": "adaptivefps.session",
"min": 20,
"max": 100
"max": 360
},
{
"type": "dropdownNumber",

View File

@ -281,7 +281,7 @@ inline static void LimitFPS()
CFG_GET_VAL(g_Game && g_Game->IsGameStarted() ? "adaptivefps.session" : "adaptivefps.menu", fpsLimit);
// Keep in sync with options.json
if (fpsLimit < 20.0 || fpsLimit >= 100.0)
if (fpsLimit < 20.0 || fpsLimit >= 360.0)
return;
double wait = 1000.0 / fpsLimit -