The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

u/space_overseer: skip actually locating space in itself

It is always going to be identity. Keep calculating the offsets though.

authored by

Christoph Haag and committed by
Simon Zeni
cada51db 7a387e40

+7 -1
+7 -1
src/xrt/auxiliary/util/u_space_overseer.c
··· 519 519 struct xrt_relation_chain xrc = {0}; 520 520 521 521 m_relation_chain_push_pose_if_not_identity(&xrc, offset); 522 - build_relation_chain(uso, &xrc, ubase_space, uspace, at_timestamp_ns); 522 + 523 + // crude optimization: If locating a space in itself, we don't actually need to locate the space itself. 524 + // only the offsets need to be applied. 525 + if (uspace != ubase_space) { 526 + build_relation_chain(uso, &xrc, ubase_space, uspace, at_timestamp_ns); 527 + } 528 + 523 529 m_relation_chain_push_inverted_pose_if_not_identity(&xrc, base_offset); 524 530 525 531 // For base_space =~= space (approx equals).