From a961fb3db36f4001c1aa8f2b4deba9f180d5f4a9 Mon Sep 17 00:00:00 2001 From: "Stefanos A." Date: Tue, 7 Jan 2014 22:09:52 +0100 Subject: [PATCH] [Examples] Added keys to modify timing Use [ and ] to decrease and increase the UpdateFrame frequency. Use < and > to decrease and increase the RenderFrame frequency. --- Source/Examples/OpenTK/Test/GameWindowStates.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Examples/OpenTK/Test/GameWindowStates.cs b/Source/Examples/OpenTK/Test/GameWindowStates.cs index 05289ea..10ae314 100644 --- a/Source/Examples/OpenTK/Test/GameWindowStates.cs +++ b/Source/Examples/OpenTK/Test/GameWindowStates.cs @@ -86,6 +86,11 @@ namespace Examples.Tests case Key.V: VSync = VSync == VSyncMode.On ? VSyncMode.Off : VSyncMode.On; break; + + case Key.BracketLeft: TargetUpdateFrequency--; break; + case Key.BracketRight: TargetUpdateFrequency++; break; + case Key.Comma: TargetRenderFrequency--; break; + case Key.Period: TargetRenderFrequency++; break; } } @@ -356,7 +361,7 @@ namespace Examples.Tests using (GameWindowStates ex = new GameWindowStates()) { Utilities.SetWindowTitle(ex); - ex.Run(30.0); + ex.Run(30.0); } } } -- 2.7.4