mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 08:25:30 +00:00
[OpenTK] Respect a TargetUpdatePeriod of zero
This commit is contained in:
parent
7b98255626
commit
95d71bc0cc
|
@ -455,6 +455,15 @@ namespace OpenTK
|
|||
|
||||
// Prepare for next loop
|
||||
elapsed = ClampElapsed(timestamp - update_timestamp);
|
||||
|
||||
if (TargetUpdatePeriod <= Double.Epsilon)
|
||||
{
|
||||
// According to the TargetUpdatePeriod documentation,
|
||||
// a TargetUpdatePeriod of zero means we will raise
|
||||
// UpdateFrame events as fast as possible (one event
|
||||
// per ProcessEvents() call)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
elapsed = ClampElapsed(timestamp - render_timestamp);
|
||||
|
|
Loading…
Reference in a new issue