File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
soh/soh/Enhancements/resolution-editor Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -406,8 +406,9 @@ void AdvancedResolutionSettingsWindow::UpdateElement() {
406406bool AdvancedResolutionSettingsWindow::IsDroppingFrames () {
407407 // a rather imprecise way of checking for frame drops.
408408 // but it's mostly there to inform the player of large drops.
409- const float threshold = CVarGetInteger (" gInterpolationFPS" , 20 ) / 20 .0f - 4 .1f ;
410- return ImGui::GetIO ().Framerate < threshold;
409+ const short targetFPS = CVarGetInteger (" gInterpolationFPS" , 20 );
410+ const float threshold = targetFPS / 20 .0f + 4 .1f ;
411+ return ImGui::GetIO ().Framerate < targetFPS - threshold;
411412}
412413
413414bool AdvancedResolutionSettingsWindow::IsBoolArrayTrue (bool * foo) {
You can’t perform that action at this time.
0 commit comments