mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-20 05:38:43 +00:00
[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:
parent
b6a806a568
commit
a961fb3db3
|
@ -86,6 +86,11 @@ namespace Examples.Tests
|
||||||
case Key.V:
|
case Key.V:
|
||||||
VSync = VSync == VSyncMode.On ? VSyncMode.Off : VSyncMode.On;
|
VSync = VSync == VSyncMode.On ? VSyncMode.Off : VSyncMode.On;
|
||||||
break;
|
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())
|
using (GameWindowStates ex = new GameWindowStates())
|
||||||
{
|
{
|
||||||
Utilities.SetWindowTitle(ex);
|
Utilities.SetWindowTitle(ex);
|
||||||
ex.Run(30.0);
|
ex.Run(30.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue