The open source OpenXR runtime
0
fork

Configure Feed

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

h/mercury: Push frame timestamp back before predicting next frame ROIs

Fixes minor logic error and stops crash if hands are detected on the very first frame

+3 -1
+3 -1
src/xrt/tracking/hand/mercury/hg_sync.cpp
··· 978 978 hgt->hand_tracked_for_num_frames[hand_idx]++; 979 979 } 980 980 981 + // Push our timestamp back as well 982 + hgt->history_timestamps.push_back(hgt->current_frame_timestamp); 983 + 981 984 // More hand-size-optimization spaghetti 982 985 if (num_hands > 0) { 983 986 hgt->target_hand_size = (float)avg_hand_size / (float)num_hands; ··· 1024 1027 1025 1028 // If the debug UI is active, push to the frame-timing widget 1026 1029 u_frame_times_widget_push_sample(&hgt->ft_widget, hgt->current_frame_timestamp); 1027 - hgt->history_timestamps.push_back(hgt->current_frame_timestamp); 1028 1030 1029 1031 // If the debug UI is active, push our debug frame 1030 1032 if (hgt->debug_scribble) {