jonni wrote:
> I tried several experiments, I run my application 30
> seconds: (Each cycle increases array)
>
> 1. No storing the data: 182000 cycles, 6100 commands/sec
> 2. Shift register (see the picture): 22000 /735 3. my
> old method using only global variables: 17890 /596
>
> So........ The main amount of time takes the actual
> adding element to array and NOT the use of global
> variables
😞I think the problem is that you just don't get it. It's
really not your fault :-). Sometimes it's hard to grasp the
concept of LV2 style globals and how they can be used in a
given application. The image you've attached is a
contradiction. You are using regular globals to feed LV2
style globals. Here is a link with
more information on these
special globals and how they can be used:
http://forums.lavausergroup.org/index.php?showtopic=273
There you will find a full working example of how to pass
data around your application using LV2 Globals. Note that
the example uses a build array function but it can easily be
replaced with a "replace array element" function.
--
Michael Aivaliotis
http://mmwis.com
http://forums.lavausergroup.org
http://niweekblog.com