mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-17 19:20:13 +00:00
d/wmr: Increase display init sleep and also add debug variable to control it
This commit is contained in:
parent
5c013bcecd
commit
b87239e7d8
|
@ -67,6 +67,9 @@
|
||||||
//! Specifies whether the user wants to use a SLAM tracker.
|
//! Specifies whether the user wants to use a SLAM tracker.
|
||||||
DEBUG_GET_ONCE_BOOL_OPTION(wmr_slam, "WMR_SLAM", true)
|
DEBUG_GET_ONCE_BOOL_OPTION(wmr_slam, "WMR_SLAM", true)
|
||||||
|
|
||||||
|
//! Specifies whether the user wants to use a SLAM tracker.
|
||||||
|
DEBUG_GET_ONCE_NUM_OPTION(sleep_seconds, "WMR_DISPLAY_INIT_SLEEP_SECONDS", 4)
|
||||||
|
|
||||||
//! Specifies whether the user wants to use the hand tracker.
|
//! Specifies whether the user wants to use the hand tracker.
|
||||||
DEBUG_GET_ONCE_BOOL_OPTION(wmr_handtracking, "WMR_HANDTRACKING", true)
|
DEBUG_GET_ONCE_BOOL_OPTION(wmr_handtracking, "WMR_HANDTRACKING", true)
|
||||||
|
|
||||||
|
@ -680,8 +683,9 @@ wmr_hmd_activate_reverb(struct wmr_hmd *wh)
|
||||||
"Sleep until the HMD display is powered up so, the available displays can be enumerated by the host "
|
"Sleep until the HMD display is powered up so, the available displays can be enumerated by the host "
|
||||||
"system.");
|
"system.");
|
||||||
|
|
||||||
// Two seconds seems to be needed, 1 was not enough.
|
// Get the sleep amount, then sleep. One or two seconds was not enough.
|
||||||
os_nanosleep(U_TIME_1MS_IN_NS * 2000);
|
uint64_t seconds = debug_get_num_option_sleep_seconds();
|
||||||
|
os_nanosleep(U_TIME_1S_IN_NS * seconds);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue