[OpenTK] Respect a TargetUpdatePeriod of zero
This commit is contained in:
parent
7b98255626
commit
95d71bc0cc
1 changed files with 9 additions and 0 deletions
|
@ -455,6 +455,15 @@ namespace OpenTK
|
||||||
|
|
||||||
// Prepare for next loop
|
// Prepare for next loop
|
||||||
elapsed = ClampElapsed(timestamp - update_timestamp);
|
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);
|
elapsed = ClampElapsed(timestamp - render_timestamp);
|
||||||
|
|
Loading…
Reference in a new issue