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

Commit 0832ce87 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

am: 151f38fe

Change-Id: Ida223a2af7a0669cf495bac8ccb8fa90414d159d
parents 33ac2367 151f38fe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -139,7 +139,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);