Decreasing Build Loading Time for Cocos Creator Mobile-Web and Desktop-Web Builds

“How can I decrease the loading time of a mobile-web or desktop-web build in Cocos Creator to improve the game’s performance?” 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?

Try to split your assets into bundles and load them as needed. I guess right now all you assets are loading at the initialization, so that’s why it’s taking so long.

“Thanks for your reply, @mvrlin . Could you please provide an example and if any more suggestion with alternative solutions?”

There are several things to check

  1. Crop unneeded features: Project Settings · Cocos Creator
  2. Enable gzip in your server
  3. Using bundles as @mvrlin suggested, very useful, also remember to choose compress types for bundles: Asset Bundle · Cocos Creator
  4. Uncheck debug mode : Build Options · Cocos Creator
  5. Config compressed image format like jpeg/png/webp with suitable qualities so that your images can be smaller, you can also change compress tools for each format. Project Settings · Cocos Creator
2 Likes
  1. The code rate and the number of channels of the audio resources can be reduced, and the file size and the decoding speed of the audio resources can be optimized.
  2. Use the auto atlas feature to pack small images in a project into a large image, which can effectively reduce the time spent loading a large number of images.
    Auto Atlas

These are two general optimization suggestions, and the rest need to be analyzed based on your project to know what works.

1 Like