-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Extras merged into engine #6228
Conversation
…pport for UMD build
What's the size impact for the UMD build, especially minified, and also gzipped version of it. |
Also, should we add |
Like extras category on top of the existing categories? |
Not sure what would be the best. Maybe even |
I think RenderPasses should be under Graphics. But the rest is fine. |
Would you have this in kB? I'd like to see if this is 10k or more like a 100k difference, which is hard to see with the rounding: Also, this specific target only gzip comparison as well please. |
|
Are extras only added to the UMD build or ESM too? |
Both |
I can't remember now, what are the reasons behind this change? We use fflate only when exporting usdz models. Adding all this to the core engine seems... wrong. |
Simplifies out entire build process, also allows extras to work properly with the standalone engine and will include the extras types too |
The end goal is to use ESM build everywhere and tree-shaking, so the size increase won't be a problem longer term. |
So is this good to merge or does it need more discussion? |
I know this is largely semantics, but should the extras not live inside src if we're folding it into the engine? |
yep, notice the renames, for example: |
Note that before the engine with this change is released, we need to release the Editor to handle the lack of extras, in a backwards compatible way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
N.B
File sizes
playcanvas.min.js
1.6MB -> 1.7MBplaycanvas.min.mjs
1.5MB -> 1.6MBplaycanvas.dbg.js
17.1MB -> 18.1MBplaycanvas.dbg.mjs
15.1MB -> 15.8MBplaycanvas.prf.js
2.9MB -> 3MBplaycanvas.prf.mjs
2.5MB -> 2.6MBplaycanvas.js
2.9MB -> 3MBplaycanvas.mjs
2.5MB -> 2.6MBgzip
12.7MB -> 13.3MB (N.B. includes unbundled ESM builds)TODO