Page 1 of 1

global variables to reduce cpu usage?

Posted: Thu Apr 18, 2013 12:56 pm
by Nubeat7
hi,

how is FS doing the compiling, does it optimize the code in any way? is it better to declare "global" variables on the top level and use them with wireless links to reduce cpu usage and/or memory.. things that are used often, like samplerate, ticker, colors,... but also TRUE / FALSE , 1, 0, -1 or other variables which are used often ... what makes sense and what not?

or does FS optimize stuff like this anyway when compiling?