Hacker News new | past | comments | ask | show | jobs | submit login

Nice. But 17 digits of of precision is on the rendered drawing bit much.



Yeah this is crazy neat but the unnecessary precision is a real bummer that could be solved by just restricting things to three decimal places. For example when I use a utility like https://jakearchibald.github.io/svgomg/ to optimize, I see a 3.53k -> 2.21k reduction for the sphere with lighting. This is not just from precision reduction but also using simple paths over polygons ... there could likely be increased size savings by "rolling up" the fills in the final output.

Still a crazy neat tool but targeting edges as paths instead of polygons would save quite a few bites when hosting this stuff.


Thanks for pointing this out, I just now added a precision field to the Engine class to help with this.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: