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

Commit 1c8b3073 authored by Okan Arikan's avatar Okan Arikan Committed by android-build-merger
Browse files

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

am: 5da2188e

Change-Id: I1e38b1030b486c1f8f641415d343bddb560d746d
parents 5f123b44 5da2188e
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(