From d9ad57e91821907cdcb71c725bb21f9be35cfb08 Mon Sep 17 00:00:00 2001 From: mrfixit2001 <38842252+mrfixit2001@users.noreply.github.com> Date: Sun, 4 Nov 2018 13:33:42 -0500 Subject: [PATCH] Move comments in function to be more relevant --- Core/HLE/sceDisplay.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/HLE/sceDisplay.cpp b/Core/HLE/sceDisplay.cpp index da3bf70f86..b570aa4aeb 100644 --- a/Core/HLE/sceDisplay.cpp +++ b/Core/HLE/sceDisplay.cpp @@ -504,11 +504,12 @@ static void DoFrameDropLogging(float scaledTimestep) { } static int CalculateFrameSkip() { - // Used to calculate the FPS to skip if the user sets the type to percent of fps int frameSkipNum; if (g_Config.iFrameSkipType == 1) { + // Calculate the frames to skip dynamically using the set percentage of the current fps frameSkipNum = ceil( flips * (static_cast(g_Config.iFrameSkip) / 100.00) ); } else { + // Use the set number of frames to skip frameSkipNum = g_Config.iFrameSkip; } return frameSkipNum;