« Return to Thread: Writing Efficient Code
One of my big optimizations is to see what kinds of things (controls or even audio) that can be re-used by many synths. If it can, become familiar with busses and routing. If you are using 10 reverbs with the same settings, see if you can create one reverb and send your 10 synths to it (for instance).Best,JoshOn Apr 24, 2009, at 1:35 PM, kernel wrote:Hello,From my experience most if not all the basic UGens in SC are very efficient so I suppose it comes down to how you use them - things like running a group of synths through a single effect/filter process instead of spawning the effect with each SynthDef.What code are you trying to optimize? The obvious tip is to use .kr UGens instead of .ar UGens where possible but maybe you trade some sound quality or maybe it isn't practical or makes little difference in some situations.Other tips include not running your server at 192KHz with 16 sample block sizes :) Of course the best joke of all is to suggest buying a new computer but you may just end up with more cores which just complicates things and isn't very funny.Good luck,kernelOn 24 Apr 2009, at 09:26, surgesg wrote:Personally, I'm looking for help with the Synth side of things, but languagetips are always helpful too.Thanks -Dan Stowell wrote:Hi -It depends on what exactly you're working on but this might help:It contains languagey tips, not synth tipsDan2009/4/24, surgesg <surgesg@...>:Hi,I've been trying to optimize some code I'm working on, and I think it'dbegreat to have a help file / tutorial on writing efficient synthesiscode.I'm wondering if people would share strategies and techniques forefficiency. I'd be glad to compile a help file out of the suggestions.Thanks,- gs--View this message in context:Sent from the Supercollider - User mailing list archive at Nabble.com._______________________________________________sc-users mailing listinfo (subscription, etc.):--_______________________________________________sc-users mailing listinfo (subscription, etc.):--View this message in context: http://www.nabble.com/Writing-Efficient-Code-tp23218503p23218759.htmlSent from the Supercollider - User mailing list archive at Nabble.com._______________________________________________sc-users mailing listinfo (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml_______________________________________________sc-users mailing listinfo (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml******************************************/* Joshua D. Parmenter“Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono*/_______________________________________________sc-users mailing listinfo (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
« Return to Thread: Writing Efficient Code
| Free embeddable forum powered by Nabble | Forum Help |