Tuesday, September 17, 2024
spot_img

Lowering Construct Loading Time for Cocos Creator Cell-Internet and Desktop-Internet Builds – Cocos Creator


“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.

Screenshot 2023-05-31 at 2.11.20 PM
Screenshot 2023-05-31 at 2.11.09 PM


@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

  1. Crop unneeded options: Challenge Settings · Cocos Creator
  2. Allow gzip in your server
  3. Utilizing bundles as @mvrlin urged, very helpful, additionally keep in mind to decide on compress varieties for bundles: Asset Bundle · Cocos Creator
  4. Uncheck debug mode : Construct Choices · Cocos Creator
  5. 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

  1. 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.
  2. 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 ?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisement -spot_img

Latest Articles