From 099df066c60aa97b343844d676117bc8f88ef7ed Mon Sep 17 00:00:00 2001 From: Zhongwang Zhang Date: Wed, 13 Mar 2024 12:48:41 +0800 Subject: [PATCH] st/oxr: Avoid calling oxr_action_cache_stop_output every time when xrSyncActions is called --- src/xrt/state_trackers/oxr/oxr_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrt/state_trackers/oxr/oxr_input.c b/src/xrt/state_trackers/oxr/oxr_input.c index e5aba5a7e..8487f3c5e 100644 --- a/src/xrt/state_trackers/oxr/oxr_input.c +++ b/src/xrt/state_trackers/oxr/oxr_input.c @@ -1125,7 +1125,7 @@ oxr_action_cache_update(struct oxr_logger *log, /* a cache can only have outputs or inputs, not both */ if (cache->output_count > 0) { cache->current.active = true; - if (cache->stop_output_time < time) { + if (cache->stop_output_time > 0 && cache->stop_output_time < time) { oxr_action_cache_stop_output(log, sess, cache); } } else if (cache->input_count > 0) {