fix(vrtsim): Reduce OS scheduler pressure caused by vrtsim timing thread

Increase the usleep to 20 uS to reduce the pressure on the OS scheduler. This
reduces the number of context switches and increases performance. The value 20uS
is approximately half a symbol in mu1 and shouldn't cause too much extra delay.

Signed-off-by: Bartosz Podrygajlo <bartosz.podrygajlo@openairinterface.org>
This commit is contained in:
Bartosz Podrygajlo
2026-06-26 09:14:00 +02:00
parent 31eb466a7d
commit 75d7fa275d

View File

@@ -272,7 +272,7 @@ static void *vrtsim_timing_job(void *arg)
shm_td_iq_channel_produce_samples(vrtsim_state->channel, samples_to_produce);
last_sample_index = sample_index;
}
usleep(1);
usleep(20);
}
return 0;
}