Frame rate to 48 fps

Change-Id: I95645b3921db22dfeca97ad2743299ccda5de83b
This commit is contained in:
Dave Burke
2011-11-04 11:46:56 -07:00
parent e4ca92421c
commit 3ee471889b

View File

@ -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.
@ -8660,7 +8665,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.