Skip to content

Commit 3ee4718

Browse files
author
Dave Burke
committed
Frame rate to 48 fps
Change-Id: I95645b3921db22dfeca97ad2743299ccda5de83b
1 parent e4ca924 commit 3ee4718

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

services/java/com/android/server/wm/WindowManagerService.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,11 @@ public class WindowManagerService extends IWindowManager.Stub
226226
*/
227227
static final int DEFAULT_FADE_IN_OUT_DURATION = 400;
228228

229+
/**
230+
* Frame rate. TODO: Replace with Display.getRefreshRate() when that is reliable.
231+
*/
232+
static final int FRAME_RATE = 48;
233+
229234
/**
230235
* If true, the window manager will do its own custom freezing and general
231236
* management of the screen during rotation.
@@ -8660,7 +8665,7 @@ private final void performLayoutAndPlaceSurfacesLockedInner(
86608665
if (needRelayout) {
86618666
requestAnimationLocked(0);
86628667
} else if (animating) {
8663-
requestAnimationLocked(currentTime+(1000/60)-SystemClock.uptimeMillis());
8668+
requestAnimationLocked(currentTime+(1000/FRAME_RATE)-SystemClock.uptimeMillis());
86648669
}
86658670

86668671
// Finally update all input windows now that the window changes have stabilized.

0 commit comments

Comments
 (0)