I have implemented throttling of parameter change execution.
communication with worker was also changed so entites are not sent as event, but as a response ro runMain and runScript.
This allows to wrap those calls to Promise neatly, and also use await.
it is supposed to skip param changes that arrive during worker execution but make sure last state of params is rendered reliably
this param can slow the script, and clicking it fast can give time to produce requests that are during worker bysy time, and it is easy to see on screen if count matches
I have implemented throttling of parameter change execution.
communication with worker was also changed so entites are not sent as event, but as a response ro runMain and runScript. This allows to wrap those calls to Promise neatly, and also use await.
it is supposed to skip param changes that arrive during worker execution but make sure last state of params is rendered reliably![image](https://github.com/hrgdavor/jscadui/assets/2480762/7842c965-3293-4817-9ad0-7cd5e04877ca)
I loaded the script http://3d.hrg.hr/jscad/three/examples/parametric_butt_hinge_3.7.js and changed
view options->throw angle
rapidly