cocos / cocos-engine

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
https://www.cocos.com/en/creator
Other
8.88k stars 2.06k forks source link

3.8 will pack 2 standard materials #16075

Closed iwae closed 1 year ago

iwae commented 1 year ago

Cocos Creator version

3.8

System information

Mac

Issue description

  1. image 3.8 will pack legacy standard mat as well, which will increase a lot in package size

  2. 企业微信截图_689a9eec-0c63-4c98-a9b6-9cb0700a9a92 even if I toggle off fxaa, fxaa still in mat json

image 3. can we cull particle's gpu/cpu mat separately for smaller package size

4. cull unused posteffect for smaller size

image

5. add global surface view debug view macro to cull the debug view for smaller size SURFACES_DEBUG_VIEW

  1. after I culling these effects manually , the scripts size of the engine will also decrease 200+kb, I think there are duplicate copy in scripts as well,same for bloom as well image

Relevant error log output

No response

Steps to reproduce

image 3.8 will pack legacy standard mat as well, which will increase a lot in package size

Minimal reproduction project

No response

linshun commented 1 year ago

Why was such a serious bug fix not included in the v3.8.1 plan, and it was three weeks ago?

jk20012001 commented 1 year ago

https://github.com/cocos/cocos-engine/pull/15650 it has been fixed in 3.8.0

iwae commented 1 year ago

all fixed

iwae commented 1 year ago

all fixed