4 ms·
As an aside, I'm getting lots of stuttering when scrolling the website on a variable-refresh rate monitor + an M1 laptop. This is a static-content website – a p
by nxobject 2y ago
As an aside, I'm getting lots of stuttering when scrolling the website on a variable-refresh rate monitor + an M1 laptop. This is a static-content website – a profiling tells me consent SVG animation and their ganja.gs [1] math library accounts for this. Not a good sign for the engineering applications of this theory...
https://github.com/enkimute/ganja.js https://github.com/enkimute/ganja.js
- redeux 2y agoThe site is also unusable on iPhone. The page keeps jumping up and down due to the same janky animation.
- johnnyjeans 2y agoworks fine on firefox on a 10 year old thinkpad. considering someone is also reporting issues on iphone, might want to file a bug report with apple.
- itishappy 2y agoGanja.js is an amazingly general GA library. The problem with GA in general is that it uses a LOT of numbers. (3DPGA uses 4d multivectors with 16 numbers for every object, so dyadic operations can involve up to 16^2 elementary operations, similar to a matmul!) For most practical applications many of them cancel out and can be optimized away. I don't believe ganja.js does this, but there are algebra generators on the site that produce optimized code. I'm not sure why they chose the general library for their landing page instead of baking the animations, but the fact that it runs as performantly as it does is actually quite impressive to me! For a glimpse at the power of ganja.js, check out the coffeeshop examples: https://enkimute.github.io/ganja.js/examples/coffeeshop.html https://enkimute.github.io/ganja.js/examples/coffeeshop.html