summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Paz Zcharya <pazz@google.com> 2025-01-28 23:56:40 +0000
committer Paz Zcharya <pazz@google.com> 2025-01-29 15:19:15 +0000
commit9bc251964d4369fe766079e0bd5a98cdde84f632 (patch)
treecdc73430e12fffa9e0e6ae8da13cf55c6bb25dd3 /libs/gui/ConsumerBase.cpp
parent19a57c0db6bd76d5b394394e9835d5e7f340f24f (diff)
SF: Merge properties that skip boot animation
The flag debug.sf.nobootanimation causes the bootanim to exit early and not show an animation. When that flag is set, launching bootanim is pointless, but it slows down boot on average by about 800 ms on some devices [1]. Quick analysis showed that loading bootanim requires reading 80 MB of read-only memory [1], which is probably the reason behind the slowdown during boot. Optimize that by not launching bootanim at all when debug.sf.nobootanimation is set, similar to the behavior when debug.sf.boot_animation is false. References: [1] Brya boottime: bootanim takes ~1.5s, b/373711392 Bug: 324366212 Bug: 373711392 Test: Test all 4 combinations of setprop debug.sf.boot_animation {false,<null>} setprop debug.sf.nobootanimation {1, <null>} Flag: EXEMPT sysprop alias Change-Id: I5599072c14008ae67ab8aec4057bda953ac5b978 Signed-off-by: Paz Zcharya <pazz@google.com>
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions