apulse icon indicating copy to clipboard operation
apulse copied to clipboard

Audio lags behind by .5 seconds on Factorio

Open BouncyMaster opened this issue 4 years ago • 3 comments

BouncyMaster avatar Aug 27 '20 12:08 BouncyMaster

Decreasing the latency value as described in https://github.com/i-rinat/apulse/issues/51#issuecomment-298900599, to something like 1000 or even 100 seems to alleviate the issue. No idea if this has any adverse effects or what the optimal value could be (maybe even 0?).

Further testing definitely required. Also ping @i-rinat: Have you done any additional research into PA latency since that comment?

Edit: Perhaps an environment variable APULSE_LATENCY could be incorporated to tweak latency on a per-invocation basis, for applications that clearly show adverse effects - like Factorio in this case.

Ristovski avatar Mar 02 '21 17:03 Ristovski

I've encountered this problem as well. Definitely an environment variable for tweaking this would be super helpful.

crabctrl avatar Mar 15 '21 11:03 crabctrl

Any progress here? Many programs are affected, not just Factorio, which renders some applications practically unusable. I've done some tests of my own, and modifying the latency value in src/apulse-context.c has no effect.

crabctrl avatar Apr 25 '21 19:04 crabctrl