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

Commit ca718a06 authored by John Reck's avatar John Reck
Browse files

Fix buffer damage for quad-buffer

Test: none
Change-Id: I4789d84945e381d67e96ef37554a161dbd0ab16c
parent 3441faa0
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -242,7 +242,8 @@ private:
        nsecs_t queueDuration;
        nsecs_t queueDuration;
    };
    };


    RingBuffer<SwapHistory, 3> mSwapHistory;
    // Need at least 4 because we do quad buffer. Add a 5th for good measure.
    RingBuffer<SwapHistory, 5> mSwapHistory;
    int64_t mFrameNumber = -1;
    int64_t mFrameNumber = -1;


    // last vsync for a dropped frame due to stuffed queue
    // last vsync for a dropped frame due to stuffed queue