Commit a24a7383 authored by Jussi Lindgren's avatar Jussi Lindgren

Server: 'Server started' sleep duration is now 0 by default

- This should not increase CPU load with well-developed hw-based drivers
- Reduces changes that we get drift or jitter due to sleeping
- Drivers based on simulation will have higher CPU loads but less drift
(because they cannot sleep accurately, they have to spin to spend time)
parent 55233c10
......@@ -21,7 +21,7 @@ AcquisitionServer_DriftCorrectionPolicy = Disabled
AcquisitionServer_JitterEstimationCountForDrift = 16
AcquisitionServer_DriftToleranceDuration = 2
AcquisitionServer_OverSamplingFactor = 1
AcquisitionServer_StartedDriverSleepDuration = 4
AcquisitionServer_StartedDriverSleepDuration = 0
AcquisitionServer_StoppedDriverSleepDuration = 100
AcquisitionServer_DriverTimeoutDuration = 5000
......
......@@ -311,7 +311,7 @@ CAcquisitionServer::CAcquisitionServer(const IKernelContext& rKernelContext)
this->setImpedanceCheckRequest(m_rKernelContext.getConfigurationManager().expandAsBoolean("${AcquisitionServer_CheckImpedance}", false));
this->setChannelSelectionRequest(m_rKernelContext.getConfigurationManager().expandAsBoolean("${AcquisitionServer_ChannelSelection}", false));
m_ui64StartedDriverSleepDuration=m_rKernelContext.getConfigurationManager().expandAsUInteger("${AcquisitionServer_StartedDriverSleepDuration}", 2);
m_ui64StartedDriverSleepDuration=m_rKernelContext.getConfigurationManager().expandAsUInteger("${AcquisitionServer_StartedDriverSleepDuration}", 0);
m_ui64StoppedDriverSleepDuration=m_rKernelContext.getConfigurationManager().expandAsUInteger("${AcquisitionServer_StoppedDriverSleepDuration}", 100);
m_ui64DriverTimeoutDuration=m_rKernelContext.getConfigurationManager().expandAsUInteger("${AcquisitionServer_DriverTimeoutDuration}", 5000);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment