4 ms·
Wow that's really cool! Any performance challenges?
by MH15 4y ago
Wow that's really cool! Any performance challenges?
- frading 4y agoThank you! And yes, 3D apps are already full of performance challenges, it's even more so when made in javascript. I probably spend 30% of my time doing optimizations (while trying to avoid premature optimizations!). The biggest win really is to avoid allocating memory when the scene plays. So as you set up your scene, I have all sorts of tricks to pre-evaluate what the scene will need, and allocate that once only. That's probably what made the biggest difference to keep a smooth FPS. But that's only on the javascript side, there is more pitfalls when generating shaders. And for the CAD part, it's powered by opencascade/wasm, so that's reasonably fast for now. But I'm sure this will get battle tested soon, with larger models and nodes setups.