mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 00:45:28 +00:00
[OpenTK] Fix UpdateFrame loop condition
Multiple UpdateFrame events should be raised to match the desired TargetUpdateFrequency, when TargetUpdateFrequency > 0. The loop would incorrectly check for TargetRenderFrequency instead. Affects issue #43
This commit is contained in:
parent
c31f64f7e1
commit
fca9f930e4
|
@ -457,7 +457,7 @@ namespace OpenTK
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while (TargetRenderFrequency > 0 && ++frameskip < max_frameskip);
|
} while (TargetUpdateFrequency > 0 && ++frameskip < max_frameskip);
|
||||||
|
|
||||||
timestamp = watch.Elapsed.TotalSeconds;
|
timestamp = watch.Elapsed.TotalSeconds;
|
||||||
double render_elapsed = MathHelper.Clamp(timestamp - render_timestamp, 0.0, 1.0);
|
double render_elapsed = MathHelper.Clamp(timestamp - render_timestamp, 0.0, 1.0);
|
||||||
|
|
Loading…
Reference in a new issue