fix: improve xr input accuracy

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2025-10-31 08:07:03 +01:00
parent 94630c451a
commit 4de91ef20b

View File

@@ -488,13 +488,6 @@ fn cam_settings(
}
fn xr_step(world: &mut World) {
// we are targeting the frame after the wait
if let Some(mut state) = world.get_resource_mut::<OxrFrameState>() {
state.predicted_display_time = openxr::Time::from_nanos(
state.predicted_display_time.as_nanos() + state.predicted_display_period.as_nanos(),
);
}
// update things like the Xr input methods
world.run_schedule(PreFrameWait);
input::process_input();