Commit 2876a381 authored by Richard Gobeille's avatar Richard Gobeille
Browse files

engine: remove weird framejitter shit from FPS limiter because it doesn't do what I wanted it to

parent 8b733c16
......@@ -598,7 +598,6 @@ int engineFPSLimit(void)
g_frameDelay = calcFrameDelay(r_maxfps, r_maxfpsoffset);
uint64_t const frameJitter = timerGetPerformanceFrequency() / 1000ull;
uint64_t frameTicks;
static uint64_t nextFrameTicks;
static uint64_t frameDelay;
......@@ -608,8 +607,8 @@ int engineFPSLimit(void)
nextFrameTicks = timerGetPerformanceCounter() + g_frameDelay;
frameDelay = g_frameDelay;
}
do { handleevents(); } while (nextFrameTicks - (frameTicks = timerGetPerformanceCounter()) < frameJitter);
handleevents();
frameTicks = timerGetPerformanceCounter();
if (nextFrameTicks - frameTicks > g_frameDelay)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment