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

Commit a7c73602 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Increase touch video buffer size

We are currently limited to having 10 buffers max inside a
TouchVideoDevice. That means that if too many frames are generated, we
will start dropping them. The dropped frames will never make it to the
InputClassifier HAL.

Now that touch is at 180 Hz, this becomes even more of a problem. If the
system is running slow, it is easy to overrun the buffer.

Increase the buffer size to avoid dropping frames.

Bug: 160016140
Test: none
Change-Id: I3662236a518e908cec94c31bf7604eb830c3308a
Merged-In: I3662236a518e908cec94c31bf7604eb830c3308a
(cherry picked from commit 487938ec)
parent f708228c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -102,7 +102,7 @@ private:
     * How many buffers to keep for the internal queue. When the internal buffer
     * exceeds this capacity, oldest frames will be dropped.
     */
    static constexpr size_t MAX_QUEUE_SIZE = 10;
    static constexpr size_t MAX_QUEUE_SIZE = 20;
    std::vector<TouchVideoFrame> mFrames;

    /**