cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

Pre-compile macros in the editor version of the engine compilation

Open jareguo opened this issue 2 years ago • 3 comments

The current engine under the editor (bundled/index.js) should be editor-specific, right? That should have all the macros that can be cured pre-compiled into it, not dynamically judged at runtime. Pre-compiling would be a bigger boost to load performance and runtime performance of the whole scene. image image image

jareguo avatar Aug 14 '23 15:08 jareguo

The current engine under the editor (bundled/index.js) should be editor-specific, right?

not exactly, the current editor engine should also support all editor process, including assetdb, scene, main process and so on, also we need to support game view

PPpro avatar Aug 15 '23 01:08 PPpro

I think most of the macros can be cured, and EDITOR is actually just as true in the current game view.

jareguo avatar Aug 15 '23 04:08 jareguo

No plans for this right now.

dumganhar avatar Apr 26 '24 07:04 dumganhar