Skip to content

Commit 4407ad7

Browse files
arter97S-H-A-M-I-K
authored andcommitted
SF: set debug.sf.frame_rate_multiple_threshold to 60 by default
If the device only have 60 and 120 Hz in the config group, 60 Hz won't be used when watching a 24 fps video and instead 120 Hz will be used because it is perfectly divisible by 24. This is a publicly documented AOSP behavior [1], but it simply does not make any practical sense and trades off significant amount of power for a very-hard-to-notice jitter-free experience. Set debug.sf.frame_rate_multiple_threshold to 60 by default to limit this behavior to 60 or lower fps. [1] https://source.android.com/devices/graphics/multiple-refresh-rate Change-Id: I66353abc46ad16e63b2c9188794469ad71f2192e Signed-off-by: Juhyung Park <[email protected]>
1 parent fff7b95 commit 4407ad7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/surfaceflinger/SurfaceFlinger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2857,7 +2857,7 @@ sp<DisplayDevice> SurfaceFlinger::setupNewDisplayDeviceInternal(
28572857
scheduler::RefreshRateConfigs::Config config =
28582858
{.enableFrameRateOverride = android::sysprop::enable_frame_rate_override(false),
28592859
.frameRateMultipleThreshold =
2860-
base::GetIntProperty("debug.sf.frame_rate_multiple_threshold", 0),
2860+
base::GetIntProperty("debug.sf.frame_rate_multiple_threshold", 60),
28612861
.idleTimerTimeout = idleTimerTimeoutMs,
28622862
.kernelIdleTimerController = kernelIdleTimerController};
28632863
creationArgs.refreshRateConfigs =

0 commit comments

Comments
 (0)