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

Commit bdd785a4 authored by Long Ling's avatar Long Ling Committed by Android (Google) Code Review
Browse files

Merge "Update the minimum interval to resync to HWVsync" into qt-r1-dev

parents 65dc3005 457bef91
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -274,7 +274,7 @@ ResyncCallback Scheduler::makeResyncCallback(GetVsyncPeriod&& getVsyncPeriod) {
}
}


void Scheduler::VsyncState::resync(const GetVsyncPeriod& getVsyncPeriod) {
void Scheduler::VsyncState::resync(const GetVsyncPeriod& getVsyncPeriod) {
    static constexpr nsecs_t kIgnoreDelay = ms2ns(500);
    static constexpr nsecs_t kIgnoreDelay = ms2ns(750);


    const nsecs_t now = systemTime();
    const nsecs_t now = systemTime();
    const nsecs_t last = lastResyncTime.exchange(now);
    const nsecs_t last = lastResyncTime.exchange(now);