RimWorld

RimWorld

110 vurderinger
Fast Mod Audio Load
2
2
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Mod, 1.5
Filstørrelse:
Offentliggjort:
Opdateret:
188.551 KB
15. dec. 2024 kl. 13:33
17. dec. 2024 kl. 22:18
2 ændringsbemærkninger ( vis )

Abonner for at downloade
Fast Mod Audio Load

Beskrivelse
This mod reduces load times for mods that provide additional music or many sounds.
Description

The effect of this mod differs depending on the platform. On Linux the effect is larger than on WIndows. The situation on other platform is not known.

Common

Loading of many small audio files is somewhat inefficient in RimWorld and can take several seconds for sound mod packs with hundreds of sounds. The audio loading changes in this mod appear to save up to one half of the loading time of such mods. This applies to both Linux and Windows.

Linux

When RimWorld loads audio files from mods, it loads them all during startup. On Linux, due to a mistake in RimWorld's code for Linux, they are decoded and loaded entirely. If using mods such as P-Music and Actually Vanilla Music Expansion, this can easily add about 20 seconds to game startup time (measured on AMD 8600G, Samsung 970 EVO Plus SSD). This also wastes a lot of memory, about 2.5GiB RAM for the two mods mentioned.

This mod switches loading of larger audio files from mods to streaming. Such audio files will be loaded later on demand.

Windows

The cost of loading audio from mods on Windows is relatively small (P-Music loads in ~1 second), as the Windows version of RimWorld uses different code to handle audio than Linux. It still appears this mod makes loading about 4-5x faster with music mods, so this might make a diference if they are large enough or several of them. In the comments a user reported reducing time spent loading audio files from 7.2 to to 3.9 seconds.

The only known downside to using this mod on Windows is losing support for mp3 and aiff formats. Mods should not use such formats, as that would prevent them from working on all platforms (only ogg and wav are supported everywhere).

Notes

Audio loaded using the Custom Music mod is not affected, as it uses the same streaming method.

RimWorld has built-in functionality to find out what costs the most during start. It may be useful to help you find out how to reduce you start time. See here.

GitHub: https://github.com/llunak/rimworld-fastmodaudioload
36 kommentarer
llunak  [ophavsmand] 21. juni kl. 15:44 
Most likely never. The main reason for the mod, the Linux not-streaming problem, has already been fixed. And the changes are relatively intrusive for the rest. Can you still measure any significant difference with the latest 1.5?

Also, your CapsLock appears to be broken.
AzoorFox 21. juni kl. 14:58 
UPDATE WHEN?????????????????
晓山alreShan 22. mar. kl. 20:37 
Be noticed, don't have # in path name.
https://github.com/llunak/rimworld-fastmodaudioload/issues/1
llunak  [ophavsmand] 12. mar. kl. 0:29 
@sel: That should bring the Linux status to the Windows status, where this mod may still help when using mods with a large number of sound files.
sel 11. mar. kl. 21:04 
In case you arent aware, from the official discord: "Version 1.5.4395 is up now on the unstable branch.
Fix: Audio clips not streaming on non-Windows platforms."
I just saw it and remembered this wonderful mod. Im not sure if that means you need to change stuff in your mod or not. Just figured I would make sure you're aware they finally (supposedly/hopefully) acted on your bug report on this from months ago.
Cheers!
llunak  [ophavsmand] 30. jan. kl. 1:58 
If you can't read the description properly, even after explicitly told so, I don't know what to tell you more.
flango 30. jan. kl. 1:39 
ok, and? THIS mod causes sound issues that aren't present without it. no log errors/warnings either, so it's really hard to pinpoint the cause. if rimworld accepts the use of mp3 files for mods, then it's not the modder's fault.
at least a disclaimer would be useful for everyone checking out this mod, rather than having a single line mentioning it and then blaming other mods for it.
llunak  [ophavsmand] 29. jan. kl. 22:40 
@flango: No, it shouldn't, read the description again. It's a fault of those mods.
flango 29. jan. kl. 20:42 
the mp3 warning should be the first line of description. spent many hours figuring out why half of the sounds in my modlist were silent.
Incursion 23. dec. 2024 kl. 11:20 
@llunak I see, thank you for the assistance. And for the mod, of course.