[Donion] [2.0.41] Lag spikes when music track is changed

This subforum contains all the issues which we already resolved.
Atraps003
Fast Inserter
Fast Inserter
Posts: 101
Joined: Thu Jan 04, 2018 6:34 am
Contact:

[Donion] [2.0.41] Lag spikes when music track is changed

Post by Atraps003 »

Sometimes when the game changes music to a space age specific track the game will lag briefly. I collected frame time data for about 1 minute on each surface while changing the music every couple of seconds. Every surface except nauvis has high frame time spikes.

I forced the game to change music using the "Play the next music track" hotkey in controls but the lag spikes happen even when the game changes the music normally. The lag spikes also occur on a different computer with different hardware and os.
Attachments
factorio-current.log
(9.29 KiB) Downloaded 12 times
aquilo.png
aquilo.png (409.88 KiB) Viewed 846 times
gleba.png
gleba.png (407.3 KiB) Viewed 846 times
fulgora.png
fulgora.png (414.93 KiB) Viewed 846 times
vulcanus.png
vulcanus.png (409.93 KiB) Viewed 846 times
space.png
space.png (409.92 KiB) Viewed 846 times
nauvis.png
nauvis.png (408.75 KiB) Viewed 846 times
Donion
Factorio Staff
Factorio Staff
Posts: 373
Joined: Sun Aug 22, 2021 9:18 am
Contact:

Re: [Donion] [2.0.41] Lag spikes when music track is changed

Post by Donion »

Thanks for the report.
The issue was related to variable music tracks and their threads. The threads could be sleeping when the track was ordered to stop, the game would wait for those threads which could lead to a noticeable stutter.

Similar stutter could occur if you press "Play next" while a variable track is generating and loading longer sample(s).

While looking into this I've also noticed a bug with Vulcanus 9 intermezzo and intermezzos in general.

All of these issues are fixed for the next release, 2.0.43.
Post Reply

Return to “Resolved Problems and Bugs”