mirror of
https://github.com/flightlessmango/MangoHud.git
synced 2024-10-31 15:20:13 +00:00
parent
b9b20d1117
commit
06f8641363
@ -2425,7 +2425,7 @@ void FpsLimiter(struct fps_limit& stats){
|
||||
auto adjustedSleep = stats.sleepTime - stats.frameOverhead;
|
||||
this_thread::sleep_for(adjustedSleep);
|
||||
stats.frameOverhead = ((Clock::now() - stats.frameStart) - adjustedSleep);
|
||||
if (stats.frameOverhead > stats.targetFrameTime)
|
||||
if (stats.frameOverhead > stats.targetFrameTime / 2)
|
||||
stats.frameOverhead = Clock::duration(0);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user