Skip to content

Commit

Permalink
Move comments in function to be more relevant
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfixit2001 committed Nov 4, 2018
1 parent 42c50a0 commit d9ad57e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Core/HLE/sceDisplay.cpp
Expand Up @@ -504,11 +504,12 @@ static void DoFrameDropLogging(float scaledTimestep) {
} }


static int CalculateFrameSkip() { static int CalculateFrameSkip() {
// Used to calculate the FPS to skip if the user sets the type to percent of fps
int frameSkipNum; int frameSkipNum;
if (g_Config.iFrameSkipType == 1) { if (g_Config.iFrameSkipType == 1) {
// Calculate the frames to skip dynamically using the set percentage of the current fps
frameSkipNum = ceil( flips * (static_cast<double>(g_Config.iFrameSkip) / 100.00) ); frameSkipNum = ceil( flips * (static_cast<double>(g_Config.iFrameSkip) / 100.00) );
} else { } else {
// Use the set number of frames to skip
frameSkipNum = g_Config.iFrameSkip; frameSkipNum = g_Config.iFrameSkip;
} }
return frameSkipNum; return frameSkipNum;
Expand Down

0 comments on commit d9ad57e

Please sign in to comment.