mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 11:24:27 +01:00
Move comments in function to be more relevant
This commit is contained in:
1 parent
42c50a0ab0
commit
d9ad57e918
1 file changed
+2
-1
@@ -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<double>(g_Config.iFrameSkip) / 100.00) );
|
||||
} else {
|
||||
// Use the set number of frames to skip
|
||||
frameSkipNum = g_Config.iFrameSkip;
|
||||
}
|
||||
return frameSkipNum;
|
||||
|
||||
Reference in new issue
Block a user