apulse
apulse copied to clipboard
Audio lags behind by .5 seconds on Factorio
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.
I've encountered this problem as well. Definitely an environment variable for tweaking this would be super helpful.
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.