Comment by CrimsonCape
2 days ago
When you loaded Suzanne, my eye could detect framerate drop when moving the model. What is the hot path in the calculations?
2 days ago
When you loaded Suzanne, my eye could detect framerate drop when moving the model. What is the hot path in the calculations?
The implementation shown in the video is actually particularly slow because all the geometric transformations are implemented in terms of lenses/optics ([1]) and ramdajs ([2]). So the whole mess is a gigantic stack of nested, composed and curried functions, instead of raw linear algebra (just becaus I could).
I later optimized the hotpath and it is significantly faster (still miles behind webgl/webgpu obviously). You can try yourself if you scroll alll the way to the veeeerrrry bottom here [3].
[1]: https://github.com/calmm-js/partial.lenses [2]: https://ramdajs.com/ [3]: https://static.laszlokorte.de/svatom/