What's more efficient?

Discuss Lemur and share techniques.
Post Reply
oldgearguy
Regular
Posts:315
Joined:02 Nov 2013 11:19
What's more efficient?

Post by oldgearguy » 11 Feb 2015 14:36

Having 3 or 4 small scripts running "On Frame" or having 1 larger script running "On Frame" ?

One would think that having a single point of entry/exit for on frame tasks would be better, but I don't know this for a fact.

Anyone have any concrete info/ideas? As a programmer I tend to gather related scripts/variables into a container/object so I tend to use multiple on frame scripts when needed since each one is localized and I don't have to reference targets like: if (LFOMain.LFO1.Waveshape.x == 0), but again, I don't know the processing tradeoff of dereferencing variables across a template versus multiple scripts.

MrCorba
Regular
Posts:143
Joined:02 Sep 2013 20:17
Location:Netherlands

Re: What's more efficient?

Post by MrCorba » 11 Feb 2015 15:03

I don't know if it uses more/less resources but I tend to use 1 On Frame script that checks values and then calls the appropriate script. So just use the On Frame script for value checking and all of the actual scripting in separate scripts.
"Having no silence in music is like having no black or white in a painting" - Brian Eno
https://soundcloud.com/mrcorba

Post Reply