GameOfLife / Unit-Lib

The Unit Library is a system that provides high level abstractions on top of the SuperCollider language.
25 stars 6 forks source link

long Udef load time, caused by klank and klang Udefs #23

Closed woutersnoei closed 8 years ago

woutersnoei commented 11 years ago

The klank and klang (new - post 2.1) Udefs both include a 64-voice version, which apparently takes SC quite a while to build. I already disabled auto synthdef loading in game of life server mode, as the long load duration caused the server starting procedure to get behind logical time, and subsequenty leaving too little pause between the first two server starts (causing a fail of sync on those). So on the GOL system it is no problem anymore, but still Ulib.startup and WFSLib.startup are very slow now.. I'm thinking of limiting klank and klang to max 32-voice, but that could break people's stuff (if they used the 64). I hope it hasn't been used a lot yet..

woutersnoei commented 10 years ago

Ok, took out the 64ch versions, load time is a bit better now

miguel-negrao commented 10 years ago

I've added at some point the ability not to load the default udefs synthdef's. So you just build the synthdefs once and then you don't build them on every boot. That made my boot much faster:

so once:

ULib.writeDefaultSynthDefs

and then on boot:

ULib.startup(false);

VBAPLib also has this. Perhaps we can close this ?