Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4fa8f7f4 authored by Dave Burke's avatar Dave Burke Committed by Android Git Automerger
Browse files

am a3af4c94: am 3ee47188: Frame rate to 48 fps

* commit 'a3af4c94':
  Frame rate to 48 fps
parents 5f43c96a a3af4c94
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -226,6 +226,11 @@ public class WindowManagerService extends IWindowManager.Stub
     */
    static final int DEFAULT_FADE_IN_OUT_DURATION = 400;

    /**
     * Frame rate. TODO: Replace with Display.getRefreshRate() when that is reliable.
     */
    static final int FRAME_RATE = 48;

    /**
     * If true, the window manager will do its own custom freezing and general
     * management of the screen during rotation.
@@ -8682,7 +8687,7 @@ public class WindowManagerService extends IWindowManager.Stub
        if (needRelayout) {
            requestAnimationLocked(0);
        } else if (animating) {
            requestAnimationLocked(currentTime+(1000/60)-SystemClock.uptimeMillis());
            requestAnimationLocked(currentTime+(1000/FRAME_RATE)-SystemClock.uptimeMillis());
        }

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