Closed mooreryan closed 1 year ago
It's not fundamental to the design, and could be fixed (with some effort...) if necessary. The reasons that the loop exists are:
Bonsai.Clock
functions) are automatically kept freshBonsai.Var
are automatically picked upIf we had an event-loop that integrated with those things, then it could schedule recomputes on demand.
Thanks for the info! That answers my question for now, so I will close this issue.
Semi-repost of this question on incr_dom here. Is the behavior/need to make that call on every request animation frame something fundamental to the way bonsai/incr_dom is working, or is it something that could potentially be changed/optimized? Basically, I am wondering if the ~3% scripting/cpu usage when an bonsai app is "idle" is something that you just have to live with if you're using bonsai. (Apologies as this is more of a question that a bug report.)