Hi folks… I have a question about using the global context.… I have a large-ish state vector which is an array of 55 elements each with a subarray of about seven elements that defines various characteristics of a 10 meter musical keyboard I'm (re)building. I currently am storing that array of a raise is a global context… Then transforming it by writing nodes that fetch the state array from the global context via
, make some changes to the state vector and then re save it in the global context via a
global.set("state", state) .
I'm starting to notice some performance problems when calling lots of the transformation nodes while running on a RasPi 4. Eg. when I call a node that does some permutations to the state vector every 100ms that changes the lights on the keys of the instrument, I notice a lag in response
is that to be expected using a Raspi 4 ? .. Is there some better practice in passing global state vector around that might be faster ?
I know there's lots of 'depends' in the question I'm asking..
Any guidance much appreciated