projects
/
platform
/
core
/
csapi
/
opentk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b98255
)
[OpenTK] Respect a TargetUpdatePeriod of zero
author
Stefanos A.
<stapostol@gmail.com>
Tue, 14 Jan 2014 12:33:41 +0000
(13:33 +0100)
committer
Stefanos A.
<stapostol@gmail.com>
Tue, 14 Jan 2014 12:33:41 +0000
(13:33 +0100)
Source/OpenTK/GameWindow.cs
patch
|
blob
|
history
diff --git
a/Source/OpenTK/GameWindow.cs
b/Source/OpenTK/GameWindow.cs
index
af55fe0
..
9200216
100644
(file)
--- a/
Source/OpenTK/GameWindow.cs
+++ b/
Source/OpenTK/GameWindow.cs
@@
-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);