switch all spans to debug_spans

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2025-01-01 03:38:46 +01:00
parent 7c57e8facd
commit 336c40d555
2 changed files with 5 additions and 4 deletions

View File

@@ -508,12 +508,13 @@ pub fn begin_xr_session(
world: &mut World,
// session: Res<OxrSession>, mut session_started: ResMut<OxrSessionStarted>
) {
let _span = info_span!("xr_begin_session").entered();
let _span = debug_span!("xr_begin_session").entered();
world
.get_resource::<OxrSession>()
.unwrap()
.begin(openxr::ViewConfigurationType::PRIMARY_STEREO)
.expect("Failed to begin session");
drop(_span);
world.get_resource_mut::<OxrSessionStarted>().unwrap().0 = true;
world.run_schedule(XrPostSessionBegin);
}
@@ -524,7 +525,7 @@ pub fn end_xr_session(
) {
// Maybe this could be an event?
world.run_schedule(XrPreSessionEnd);
let _span = info_span!("xr_end_session").entered();
let _span = debug_span!("xr_end_session").entered();
world
.get_resource::<OxrSession>()
.unwrap()