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

Commit 5da2188e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Pose flicker fix on some devices" into oc-dev

parents e937eb86 188a17e3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -467,7 +467,10 @@ void PoseService::UpdatePoseMode() {
                                              -kDefaultNeckHorizontalOffset);

      // Update the current latency model.
      sensor_latency_.AddLatency(GetSystemClockNs() - pose_state.timestamp_ns);
      if (pose_state.timestamp_ns != 0) {
        sensor_latency_.AddLatency(GetSystemClockNs() -
                                   pose_state.timestamp_ns);
      }

      // Update the timestamp with the expected latency.
      WriteAsyncPoses(