mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-20 09:58:38 +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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue