From db715063a9355f5de130073e0785372a44acdefd Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Mon, 4 Feb 2019 20:11:54 -0800 Subject: [PATCH] Set default frameRateLimit to 70 as a safety net for monitors without v-sync. --- include/settings.hpp | 2 +- src/window.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/settings.hpp b/include/settings.hpp index 4816f2ea..ba8acdb6 100644 --- a/include/settings.hpp +++ b/include/settings.hpp @@ -21,7 +21,7 @@ struct Settings { bool cpuMeter = false; bool lockModules = false; bool checkVersion = true; - float frameRateLimit = 0.0; + float frameRateLimit = 70.0; bool frameRateSync = true; bool skipLoadOnLaunch = false; std::string patchPath; diff --git a/src/window.cpp b/src/window.cpp index 84cfa0d7..f996121d 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -401,6 +401,7 @@ void Window::run() { // Compute actual frame rate endTime = glfwGetTime(); + // DEBUG("%g fps", 1 / (endTime - startTime)); frame++; } }