Davor Hrg
Davor Hrg
could you please help me with this so I can know when worker is called the reason is: - model reloaded - parameter changed 🙏 🙏 pls pls help me...
Last time i tested the whole script is re-evaluated on parameter change. Just add some console log in script body outside of main, and test the script by changing params....
open these 2 examples and change params after you F12 open dev console https://openjscad.xyz/?uri=http://3d.hrg.hr/jscad/three/examples/sphere.js http://3d.hrg.hr/jscad/three/threejscad.html?uri=examples/sphere.js ``` console.log('Script evaluated ', new Date()) function main({ radius= 10}){ console.log('main called ', new Date())...
The code did not change, so there is no need for re-eval the script. if the code loads something else based on the parameter, still code did not change, an...
yeah, but the whole process is also repeated for every parameter change: 1 change parameters 2 main thread sends file system to worker thread for evaluation 3 worker thread evaluates...
yes, but there is zero chance to optimize by reusing some operations results if code is revaluated every time. The way I see it, there are multiple levels to optimize...
> Just see web/src/ui/flows/design.js as this is the main 'controller' for the solid generation. I have found it before and seen it, I have seen it again..... it is just...
so, the dev that chose 'most' framework is no longer here ? or someone else that understands how it works ?
is the dev that made regl-renderer still here or sbdy that understands it ? I found it easier to navigate three.js even tho it is huge... I think it would...
ok, it is ok then that I play around with threejs for the new web ui in a separate repo? is threejs possible as a future direction or future alternative...