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

Commit 151f38fe authored by Gao Shuo's avatar Gao Shuo Committed by android-build-merger
Browse files

Merge "Avoid fake high input latency while vsync drifting"

am: 3996c9eb

Change-Id: I2ec4e9d40b9161a5823e0b87ffe6b576a33ee912
parents c008c062 3996c9eb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ void JankTracker::finishFrame(const FrameInfo& frame) {
        (*mGlobalData)->reportJank();
    }

    bool isTripleBuffered = mSwapDeadline > frame[FrameInfoIndex::IntendedVsync];
    bool isTripleBuffered = (mSwapDeadline - frame[FrameInfoIndex::IntendedVsync]) > (mFrameInterval * 0.1);

    mSwapDeadline = std::max(mSwapDeadline + mFrameInterval,
                             frame[FrameInfoIndex::IntendedVsync] + mFrameInterval);