CMake,config.h: Add -DSTIMBUFF_FRAME_RETRY_DELAY_MS
This determines how long a stimbuff should wait before retrying to produce a stimframe, if the previous stimframe is still being produced.
This commit is contained in:
@@ -40,6 +40,14 @@ if(NOT STIMBUFF_FRAME_PERIOD_MS GREATER 0)
|
|||||||
"STIMBUFF_FRAME_PERIOD_MS must be a positive integer > 0")
|
"STIMBUFF_FRAME_PERIOD_MS must be a positive integer > 0")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Stimulus buffer frame retry delay configuration
|
||||||
|
set(STIMBUFF_FRAME_RETRY_DELAY_MS 3
|
||||||
|
CACHE STRING "Stimulus buffer frame retry delay (ms)")
|
||||||
|
if(NOT STIMBUFF_FRAME_RETRY_DELAY_MS GREATER 0)
|
||||||
|
message(FATAL_ERROR
|
||||||
|
"STIMBUFF_FRAME_RETRY_DELAY_MS must be a positive integer > 0")
|
||||||
|
endif()
|
||||||
|
|
||||||
# World thread configuration
|
# World thread configuration
|
||||||
option(WORLD_USE_BODY_THREAD
|
option(WORLD_USE_BODY_THREAD
|
||||||
"Use body thread for world component instead of separate world thread" OFF)
|
"Use body thread for world component instead of separate world thread" OFF)
|
||||||
@@ -61,6 +69,8 @@ endif()
|
|||||||
set(CONFIG_DEBUG_QUTEX_DEADLOCK_TIMEOUT_MS ${DEBUG_QUTEX_DEADLOCK_TIMEOUT_MS})
|
set(CONFIG_DEBUG_QUTEX_DEADLOCK_TIMEOUT_MS ${DEBUG_QUTEX_DEADLOCK_TIMEOUT_MS})
|
||||||
# Set the stimulus buffer frame period variable for config.h
|
# Set the stimulus buffer frame period variable for config.h
|
||||||
set(CONFIG_STIMBUFF_FRAME_PERIOD_MS ${STIMBUFF_FRAME_PERIOD_MS})
|
set(CONFIG_STIMBUFF_FRAME_PERIOD_MS ${STIMBUFF_FRAME_PERIOD_MS})
|
||||||
|
# Set the stimulus buffer frame retry delay variable for config.h
|
||||||
|
set(CONFIG_STIMBUFF_FRAME_RETRY_DELAY_MS ${STIMBUFF_FRAME_RETRY_DELAY_MS})
|
||||||
|
|
||||||
# Configure config.h
|
# Configure config.h
|
||||||
configure_file(
|
configure_file(
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
#define CONFIG_MRNTT_DEVMGR_REATTACHER_PERIOD_MS @MRNTT_DEVMGR_REATTACHER_PERIOD_MS@
|
#define CONFIG_MRNTT_DEVMGR_REATTACHER_PERIOD_MS @MRNTT_DEVMGR_REATTACHER_PERIOD_MS@
|
||||||
/* Stimulus buffer frame period configuration */
|
/* Stimulus buffer frame period configuration */
|
||||||
#define CONFIG_STIMBUFF_FRAME_PERIOD_MS @CONFIG_STIMBUFF_FRAME_PERIOD_MS@
|
#define CONFIG_STIMBUFF_FRAME_PERIOD_MS @CONFIG_STIMBUFF_FRAME_PERIOD_MS@
|
||||||
|
#define CONFIG_STIMBUFF_FRAME_RETRY_DELAY_MS @CONFIG_STIMBUFF_FRAME_RETRY_DELAY_MS@
|
||||||
|
|
||||||
/* World thread configuration */
|
/* World thread configuration */
|
||||||
#cmakedefine CONFIG_WORLD_USE_BODY_THREAD
|
#cmakedefine CONFIG_WORLD_USE_BODY_THREAD
|
||||||
|
|||||||
Reference in New Issue
Block a user