brainout icon indicating copy to clipboard operation
brainout copied to clipboard

AssetManager: sound assets take half of loading time

Open OcZi opened this issue 3 years ago • 1 comments

all the assets load with a regular time of milliseconds except sound assets, which take a long time to load (half of loading time).

Sound loading duration is approximately 18 seconds (starts at 0:09)

https://user-images.githubusercontent.com/30794365/159822347-2c708acf-30ac-4ec6-87db-f13e40878ef4.mp4

Tested with processor AMD Athlon 3000g, Ram: 6 GB

OcZi avatar Mar 24 '22 01:03 OcZi

That is pretty much expected and you can't do anything about it. I've tried switching from mp3 to ogg, didn't get any boost. wav takes too much space.

You can define BRAINOUT_NO_SOUND env variable for development, and the game will skip loading those assers.

desertkun avatar Mar 26 '22 12:03 desertkun