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.
[Donion] [2.0.41] Lag spikes when music track is changed
[Donion] [2.0.41] Lag spikes when music track is changed
- Attachments
-
- factorio-current.log
- (9.29 KiB) Downloaded 12 times
-
- aquilo.png (409.88 KiB) Viewed 846 times
-
- gleba.png (407.3 KiB) Viewed 846 times
-
- fulgora.png (414.93 KiB) Viewed 846 times
-
- vulcanus.png (409.93 KiB) Viewed 846 times
-
- space.png (409.92 KiB) Viewed 846 times
-
- nauvis.png (408.75 KiB) Viewed 846 times
Re: [Donion] [2.0.41] Lag spikes when music track is changed
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.
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.