EXPERIMENT: Don't wait on hopping mutex to improve tuner granularity. #39
Labels
enhancement
New feature or request
good first issue
Good for newcomers
question
Further information is requested
Idea for improving the number of tuning operations per second #8
The current implementation of
RtlSdr_tune
signalss->hop_m
to let the tuning thread know to tune the SDR. Why not trymoving controller_thread_fn
's mutex wait out of the loop body.safe_cond_wait(&s->hop, &s->hop_m);
step
call the tuner every time.safe_cond_signal
in RtlSdr_tune &safe_cond_wait
in the loop body) and record again.In the shipping version of the code, the tuning thread should keep track of what it tuned to and only tune again (ie call
optimal_settings
&rtlsdr_set_center_freq
) if the frequency has changed.If we're thinking of calling
optimal_settings
&rtlsdr_set_center_freq
directly insideRtlSdr_tune
, remember that rtlsdr_set_center_freq will hang Rack & glitch the audio if you call it as fast as you can.The text was updated successfully, but these errors were encountered: