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

Commit 63d5b5d2 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

am: 0832ce87

Change-Id: I7c3bbbfe4789c5ec91d73f7f358eddada689c842
parents 21e59546 0832ce87
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);