Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very long loading time at first then very quick if reloaded... #1309

Open
Sylv1o opened this issue Dec 29, 2024 · 10 comments
Open

Very long loading time at first then very quick if reloaded... #1309

Sylv1o opened this issue Dec 29, 2024 · 10 comments

Comments

@Sylv1o
Copy link

Sylv1o commented Dec 29, 2024

Hi,

I noticed that the loading time can become very long when using many samples... Of course it's normal that using more samples leads to a higher loading time but...
More than 30 seconds for a 400mb library is abnormal IMHO.

It is also to be notice that once the instrument has been loaded, you can remove it, load another one, and then if you load the fisrt instrument agian, the loading time is divided by 5 !!!

I'm about to release a big work and this thing is now my biggest concern... Something to do here ? I'm convinced there's soething wrong here...

What is strange is that the problem is "cross DAW" : I mean that if you load a big instrument in Sfizz vst in Cubase, it's very long. Then close Cubase, open Reaper, load the same instrument : it's 5 times faster to load... To get the long loading time again you need to restart the computer....

Last thing ti notice is that SFIZZ vst show 1.2gb of used memory for a 400mb livrary (FLAC)... 630 mb vor a 270mb library... Abnormal too ?

Please, help !

@michael02022
Copy link

michael02022 commented Dec 29, 2024

This is due to FLAC compresion in the library. AFAIK sfizz has to decompress the samples and then load it in memory (that's why in memory is huge while in storage is small). And of course the time to decompress it, the number of samples used and so on contributes to long loading times. If you use WAV for the library, it will load them a lot quickier since there's nothing to decompress.

If you really want to load libraries quickier in the first load, the most viable solution is to convert the library to WAV.

I believe it could be optimized, but that's the explaination I can give why that happens.

@Sylv1o
Copy link
Author

Sylv1o commented Dec 30, 2024

Hello,
no sorry, wav or flac, same thing on the first loading, about 30 seconds for 620mb wav file. Soooooo long...
And fact is that once loaded somewhere (in sfizz vst in Cubase for exemple), if you reload the same instrument somewhere (cubase or reaper) the loading time is very fast, which is a very strange behaviour.

Please Help !

@Sylv1o
Copy link
Author

Sylv1o commented Dec 30, 2024

I should have mentionned that it's a percussion library. So samples are very short but I use many (multi mic, round robin and many velocity layers).
So all is loaded in RAM, not only the begining of each sample (hint_ram_based=1)

@essej
Copy link
Contributor

essej commented Dec 30, 2024

I should have mentionned that it's a percussion library. So samples are very short but I use many (multi mic, round robin and many velocity layers). So all is loaded in RAM, not only the begining of each sample (hint_ram_based=1)

That was a very important detail to specify! Of course loading it all into RAM will take some time. As for the "weird" second time faster loading, I am almost positive this is due to OS level file caching... once those have been loaded, the OS has those filesystem pages in cache and re-reading them is coming from cache instead of disk. What operating system are you using?

@Sylv1o
Copy link
Author

Sylv1o commented Dec 30, 2024

Windows 10.
30 second to load 400mb is normal to you ?

@Sylv1o
Copy link
Author

Sylv1o commented Dec 30, 2024

The samples are stored on a SSD of course.

@essej
Copy link
Contributor

essej commented Dec 30, 2024

I'm guessing the more files (regardless of their length), the more overhead there would be. I'm happy to test on my Mac system to see if the same sample set has similar behavior on my system if you want to contact me privately.

@Sylv1o
Copy link
Author

Sylv1o commented Dec 30, 2024

Thanks, I will do. Just my instrument are not SFIZZ compatible, I use the sfizz module of Synthedit, and loading it in sfizz work but you can't here anything (cause the CC are set via synthedit, not with a dedicated file).
So either I send you the instrument as it is, and you could just check the loading time, or I make an instrument compatible with sfizz...
Stay tuned, thanks i advance

@Sylv1o
Copy link
Author

Sylv1o commented Dec 31, 2024

Call me stupid, I can't find how to contact you in private... Are you on discord maybe ?

@essej
Copy link
Contributor

essej commented Dec 31, 2024

Call me stupid, I can't find how to contact you in private... Are you on discord maybe ?

Yes, and I thought I already contacted you yesterday on discord since I’m pretty sure we’ve talked before. I’m Sonosaurus there…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants