-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace Three.js math with something more compact #2
Comments
Kip adds:
|
Nick Desaulniers has some ideas on this also. |
This is optimization so I'll give it lower priority than the functionality bugs. I'll deal with this on a clean up pass soon. |
I made a build of threejs with only the Math API. cssvr.js is now 404kb (non minified). I will do further optimizations to keep reducing the size. I would like to keep the threejs Math API for consistency sake. It's what we will likely use for WebGL content. |
Trimmed even more. Just to make things clear: cssvr.js is the debug build of the library. Source maps, no minification, no uglification. It's 248Kb now cssvr-min.js is the version to be used in production. It's 48Kb now |
I trimmed threejs a bit more and cssvr-min.js is now 34kb minified (9.65KB gzipped) |
Unminified Three.js makes our cssvr.js file size over 2MB. @caseyyee suggests https://www.npmjs.com/search?q=gl-matrix as an potential alternative.
The text was updated successfully, but these errors were encountered: