[Examples] Added keys to modify timing

Use [ and ] to decrease and increase the UpdateFrame frequency.
Use < and > to decrease and increase the RenderFrame frequency.
This commit is contained in:
Stefanos A. 2014-01-07 22:09:52 +01:00
parent b6a806a568
commit a961fb3db3

View file

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