mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-25 08:33:27 +00:00
Add UI for forcing FPS at 60.
This commit is contained in:
parent
bf16c79b66
commit
64e1ad3e5e
@ -966,6 +966,10 @@ void GraphicsScreenP3::render() {
|
||||
int stride = 40;
|
||||
int columnw = 400;
|
||||
|
||||
bool forceGameFPS60 = g_Config.iForceGameFPS == 60;
|
||||
if (UICheckBox(GEN_ID, x, y += stride, gs->T("Force 60 FPS or less"), ALIGN_TOPLEFT, &forceGameFPS60))
|
||||
g_Config.iForceGameFPS = forceGameFPS60 ? 60 : 0;
|
||||
|
||||
bool ShowCounter = g_Config.iShowFPSCounter > 0;
|
||||
UICheckBox(GEN_ID, x, y += stride, gs->T("Show speed / frames per emusecond"), ALIGN_TOPLEFT, &ShowCounter);
|
||||
if (ShowCounter) {
|
||||
@ -998,7 +1002,7 @@ void GraphicsScreenP3::render() {
|
||||
y += 20;
|
||||
} else
|
||||
g_Config.iShowFPSCounter = 0;
|
||||
|
||||
|
||||
bool FpsLimit = g_Config.iFpsLimit != 0;
|
||||
UICheckBox(GEN_ID, x, y += stride, gs->T("Toggled Speed Limit"), ALIGN_TOPLEFT, &FpsLimit);
|
||||
if (FpsLimit) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user