On 2021-11-04 16:21:12, Alexandre Ratchov <a...@caoua.org> wrote:
> The current sndiod latency (minimum time between when the program
> plays something and when sound reaches Joe's ears) is too large and
> makes OpenBSD unpleasant to use for telephony, games, and makes
> controls of video players slugish.
> 
> [...]
>
> Please try to switch you system to 40ms buffers (i.e. 1920 samples at
> the default 48kHz rate), for instance either apply diff below or
> simply do:
> 
>       rcctl set sndiod flags -z 480 -b 1920
>       rcctl restart sndiod
> 
> then report any significant increase of stuttering, and what
> software/hardware triggers it. If you think 20ms or 30ms (i.e. 960 and
> 1440 sample buffers) are better, let me know as well.
> 

I experienced stuttering while watching YouTube videos with
"-z 480 -b 1920" when pegging all CPUs to 100% (building a large port like
Firefox or building a kernel).

I tried doubling it to "-z 960 -b 3840" and the stuttering went away.

I then tried taking the middle and set "-z 720 -b 2880" and the
audio was still OK.  So it seems my system can't be set as low as
480/1920 but 720/2880 or higher works.

This is on a:
        cpu0: Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz, 3890.94 MHz, 06-9e-09

in a ThinkPad T470p running on:
        OpenBSD 7.0-current (GENERIC.MP) #93: Sat Nov 13 18:25:45 MST 2021
            dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

Hopefully this information helps.

Please let me know if you require any more information.

-- 
Bryan

Reply via email to