Skip to content

Commit

Permalink
fix(client_core): 🐛 Fix wrong controller timestamp
Browse files Browse the repository at this point in the history
Fixes #2445
  • Loading branch information
zmerp committed Oct 8, 2024
1 parent f215090 commit 757aa4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alvr/client_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ impl ClientCoreContext {
motion.linear_velocity = Vec3::ZERO;
motion.angular_velocity = Vec3::ZERO;
} else if let Some(stats) = &*self.connection_context.statistics_manager.lock() {
let tracker_timestamp = stats.tracker_prediction_offset();
let tracker_timestamp = poll_timestamp + stats.tracker_prediction_offset();

*motion = predict_motion(tracker_timestamp, poll_timestamp, *motion);
}
Expand Down

0 comments on commit 757aa4c

Please sign in to comment.