[OpenTK] Respect a TargetUpdatePeriod of zero

This commit is contained in:
Stefanos A. 2014-01-14 13:33:41 +01:00
parent 7b98255626
commit 95d71bc0cc

View file

@ -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);