I'm making an audio UI object. Currently I'm calling the jbox_redraw routine from inside the perform routine. This seems to work fine, but I'm wondering if this is the best way to do this or not... My timing between draws is governed by an sample counting mechanism that happens to be necessary for my task anyway.
I will probably a data lightweight thread mechanism around the data I'm changing form the perform routine to prevent it being altered whilst drawing is taking place. Apart from this issue, is there anything else I should take into account? I see that pictmeter~ calls the draw routine from a clock - is this particularly better performance wise?
Any thoughts appreciated.