definitely decouple your redraw from the other stuff as a first step. probably a good rule of thumb is to always have redraw running from a dedicated metro.
and my gut reaction is that the described use of the phase poll is not a robust or efficient architecture for the feature.
if rate isn’t being modulated as loop is set, just measure time since setting loop, and multiply rate, no need to involve the backend.
for when rate is being modulated as loop is set, i think we should probably add something to the backend to make this a realistic goal. i see two options:
- add commands to immediately set loop endpoints to current (unquantized) phase position
- build out a little more support for polling options, particularly the
poll/update command which gives you a single value immediately.
both are simple, but it’s monday and i’m doing day job stuff for a while.
oh but, [update] since you say 0.01s, that should be fine. but if you’re talking about the phase quantum, then remember that you need to multiply rate to get actual update speed. so if rate = 10x then you’re in trouble. that’s what i mean by “not robust.”