Skip to content

Commit 525aafa

Browse files
committed
Remove 59 on 60 special case, use maxFPS instead
1 parent 7e7422d commit 525aafa

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

FirebasePerformance/Sources/AppActivity/FPRScreenTraceTracker.m

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,7 @@ - (void)updateCachedSlowBudget {
257257
}
258258
if (maxFPS > 0) {
259259
_cachedMaxFPS = maxFPS;
260-
// Preserve legacy behavior: 60 FPS devices historically used 59 FPS threshold
261-
// to avoid too many false positives for slow frames.
262-
NSInteger effectiveFPS = (maxFPS == 60) ? 59 : maxFPS;
263-
_cachedSlowBudget = 1.0 / effectiveFPS;
260+
_cachedSlowBudget = 1.0 / maxFPS;
264261
} else {
265262
// Fallback to default FPS if maximumFramesPerSecond is unavailable or invalid.
266263
_cachedMaxFPS = kFPRDefaultFPS;

0 commit comments

Comments
 (0)