From 64e1ad3e5ee136d628a58855bc2abe9d603ccf5f Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 29 Jun 2013 20:41:53 -0700 Subject: [PATCH] Add UI for forcing FPS at 60. --- UI/MenuScreens.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/UI/MenuScreens.cpp b/UI/MenuScreens.cpp index 79dea2d3fc..7c74f7cb5e 100644 --- a/UI/MenuScreens.cpp +++ b/UI/MenuScreens.cpp @@ -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) {