From e6c01c77f3082726b2a20a96625c44fa1f4e5891 Mon Sep 17 00:00:00 2001 From: Peter Repukat Date: Sun, 22 Apr 2018 14:32:08 +0200 Subject: [PATCH] SteamTarget: option to edit refresh rate --- SteamTarget/SteamTarget.cpp | 10 +++++++--- TargetConfig.ini | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/SteamTarget/SteamTarget.cpp b/SteamTarget/SteamTarget.cpp index d03aa62..ff37347 100644 --- a/SteamTarget/SteamTarget.cpp +++ b/SteamTarget/SteamTarget.cpp @@ -126,11 +126,15 @@ void SteamTarget::readIni() else if (childkey == "iUpdateRate") { bool isInt = false; update_rate_ = settings.value(childkey).toInt(&isInt); - if (!isInt) - update_rate_ = 5000; - if (update_rate_ < 0) + if (!isInt || update_rate_ < 0) update_rate_ = 5000; } + else if (childkey == "iRefreshRate") { + bool isInt = false; + max_fps_ = settings.value(childkey).toInt(&isInt); + if (!isInt || max_fps_ < 0) + max_fps_ = 60; + } } settings.endGroup(); settings.beginGroup("LaunchGame"); diff --git a/TargetConfig.ini b/TargetConfig.ini index 0f6a2cf..d7da093 100644 --- a/TargetConfig.ini +++ b/TargetConfig.ini @@ -6,6 +6,7 @@ bEnableControllers=1 bUseDesktopConfig=0 bHookSteam=0 iUpdateRate=5000 +iRefreshRate=60 version=515 [LaunchGame]