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

Commit cbadfaf6 authored by Michael Wright's avatar Michael Wright
Browse files

Make default brightness ramp rates multiples of 60.

If ramp rates aren't even multiple of 60 then we're more likely to get
brightness changes that differ each frame, which can show up as a
stuttering in the animation.

Bug: 64514692
Test: made change, took systrace, saw smooth ramping
Change-Id: Iada2f1de684d94fe790ab8d5cf03bea5ba1a2ca5
parent 175e8784
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -626,10 +626,10 @@
    <bool name="config_automatic_brightness_available">false</bool>

    <!-- Fast brightness animation ramp rate in brightness units per second-->
    <integer translatable="false" name="config_brightness_ramp_rate_fast">200</integer>
    <integer translatable="false" name="config_brightness_ramp_rate_fast">180</integer>

    <!-- Slow brightness animation ramp rate in brightness units per second-->
    <integer translatable="false" name="config_brightness_ramp_rate_slow">40</integer>
    <integer translatable="false" name="config_brightness_ramp_rate_slow">60</integer>

    <!-- Don't name config resources like this.  It should look like config_annoyDianne -->
    <bool name="config_annoy_dianne">true</bool>