“How can I lower the loading time of a mobile-web or desktop-web construct in Cocos Creator to enhance the sport’s efficiency?” see the attachment for reference.
@CocosMarketing @pandamicro any Sugggestion?
Attempt to cut up your belongings into bundles and cargo them as wanted. I assume proper now all you belongings are loading on the initialization, in order that’s why it’s taking so lengthy.
“Thanks to your reply, @mvrlin . May you please present an instance and if any extra suggestion with different options?”
There are a number of issues to examine
- Crop unneeded options: Challenge Settings · Cocos Creator
- Allow gzip in your server
- Utilizing bundles as @mvrlin urged, very helpful, additionally keep in mind to decide on compress varieties for bundles: Asset Bundle · Cocos Creator
- Uncheck debug mode : Construct Choices · Cocos Creator
- Config compressed picture format like jpeg/png/webp with appropriate qualities in order that your photos could be smaller, you may also change compress instruments for every format. Challenge Settings · Cocos Creator
2 Likes
- The code fee and the variety of channels of the audio assets could be diminished, and the file dimension and the decoding pace of the audio assets could be optimized.
- Use the auto atlas characteristic to pack small photos in a undertaking into a big picture, which may successfully cut back the time spent loading numerous photos.
Auto Atlas
These are two basic optimization solutions, and the remaining should be analyzed primarily based in your undertaking to know what works.
2 Likes
Hi there there, we age some video games on poki however we have to enhance the loading and clean display screen error in our recreation Actual Property Rush when the sport begins.
However solely 55% of gamers begin the sport on cellular.
Really we’re in search of an optimization guidelines for Cocos Creator and HTML5 construct.
It’s a 3d recreation and the construct dimension is 10mb.
We already adopted this submit :
**We listed this to optimize the construct: **
- Resize photos to have the smallest potential dimension.
- Compress .png information with tinypng.com or (these not in auto atlas).
- Disable pointless options in Challenge > Function Cropping.
- Uncheck Primitives and take away the Skybox and its TextureCube in scenes, and alter the Major Digicam Clear Flags to SOLID_COLOR.
- Compress sounds to low high quality (32k, mono, 22050Hz).
- Use Asset Bundles and select the correct compression mode.
- Uncheck debug mode in construct choices.
- Use the auto atlas characteristic in Cocos Creator 3.8 Guide – Auto Atlas (textures in sprite renderers don’t work but).
However we don’t know the right way to configure the construct settings appropriately.
Do you may have suggestions ?