From 3df8c77cabb44822ed262369feb2474d20670945 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sun, 11 Nov 2007 23:32:58 +0000 Subject: [PATCH] Added a call to StopWatch.Reset() to avoid starting the timers before their time. --- Source/OpenTK/GameWindow.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/OpenTK/GameWindow.cs b/Source/OpenTK/GameWindow.cs index 1498096e..04017548 100644 --- a/Source/OpenTK/GameWindow.cs +++ b/Source/OpenTK/GameWindow.cs @@ -419,6 +419,9 @@ namespace OpenTK UpdateFrameEventArgs update_args = new UpdateFrameEventArgs(); RenderFrameEventArgs render_args = new RenderFrameEventArgs(); + update_watch.Reset(); + render_watch.Reset(); + //double sleep_granularity; // In seconds. //GC.Collect(2);