[1.1.33] Linux audio drops

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

foxpy
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun Dec 27, 2020 10:29 am
Contact:

[1.1.33] Linux audio drops

Post by foxpy »

TLDR: I propose to change PULSE_LATENCY_MSEC to 40 (it is 20 right now) because of audio drops on underpowered systems.

First of all, I would like to point to this old bug report: viewtopic.php?f=11&t=2489
The solution there was to set pulseaudio latency to 20 msec. This seemed like a good default since nobody has been complaining, right?
Well, I have always been having audio drops with high background CPU activity on my relatively underpowered system (I consider it to be slower than minimum Factorio requirements): Intel Core i5-3210M with 16 GB 2133 MHz RAM and Intel HD 4000 integrated GPU.
Things have been very bad with Pulseaudio (Pulseaudio is a kind of slow audio server), but my experience has dramatically improved since I have switched to Pipewire (it is way faster by design than Pulseaudio). Now I have these audio drops very rarely and only under extremely heavy loads (e.g. compiling with 6 threads, but machine has just 4). Things get excellent (no audio drops under any condition) when I set environment variable PULSE_LATENCY_MSEC to 40, thankfully Factorio does not override it and Pipewire is backwards compatible to Pulseaudio. So, I propose to just set it to 40 as it is still an excellent small latency for comfortable gameplay and it is probably still going to be better than video output latency.
Post Reply

Return to “Ideas and Suggestions”