Added a call to StopWatch.Reset() to avoid starting the timers before their time.
This commit is contained in:
parent
f103f08f35
commit
e020c2f55f
1 changed files with 3 additions and 0 deletions
|
@ -419,6 +419,9 @@ namespace OpenTK
|
||||||
UpdateFrameEventArgs update_args = new UpdateFrameEventArgs();
|
UpdateFrameEventArgs update_args = new UpdateFrameEventArgs();
|
||||||
RenderFrameEventArgs render_args = new RenderFrameEventArgs();
|
RenderFrameEventArgs render_args = new RenderFrameEventArgs();
|
||||||
|
|
||||||
|
update_watch.Reset();
|
||||||
|
render_watch.Reset();
|
||||||
|
|
||||||
//double sleep_granularity; // In seconds.
|
//double sleep_granularity; // In seconds.
|
||||||
|
|
||||||
//GC.Collect(2);
|
//GC.Collect(2);
|
||||||
|
|
Loading…
Reference in a new issue