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

Commit 10a9f42c authored by Ady Abraham's avatar Ady Abraham Committed by Automerger Merge Worker
Browse files

Merge "SurfaceFlinger: tune MAX_FREQUENT_LAYER_PERIOD_NS for inactive layers"...

Merge "SurfaceFlinger: tune MAX_FREQUENT_LAYER_PERIOD_NS for inactive layers" into rvc-dev am: fd201b3c am: 4861598a am: 34aba964 am: d76f34f6

Change-Id: Ie9de02562aefaf533d5e0c084ad35ab8a92e27b9
parents c46f17d8 d76f34f6
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -47,9 +47,7 @@ class LayerInfoV2 {
    // is within a threshold. If a layer is infrequent, its average refresh rate is disregarded in
    // favor of a low refresh rate.
    static constexpr size_t FREQUENT_LAYER_WINDOW_SIZE = 3;
    static constexpr float MIN_FPS_FOR_FREQUENT_LAYER = 10.0f;
    static constexpr auto MAX_FREQUENT_LAYER_PERIOD_NS =
            std::chrono::nanoseconds(static_cast<nsecs_t>(1e9f / MIN_FPS_FOR_FREQUENT_LAYER)) + 1ms;
    static constexpr std::chrono::nanoseconds MAX_FREQUENT_LAYER_PERIOD_NS = 150ms;

    friend class LayerHistoryTestV2;