# How to reduce loading time

**URL:** <https://forum.playcanvas.com/t/how-to-reduce-loading-time/30357>\
**Category:** Help & Support\
**Created:** [March 29, 2023, 1:27pm UTC](https://forum.playcanvas.com/t/how-to-reduce-loading-time/30357 "2023-03-29T13:27:17Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![SWEETAN\_MARIYAPPAN](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/sweetan_mariyappan/32/10744_2.png) [@SWEETAN\_MARIYAPPAN](https://forum.playcanvas.com/u/SWEETAN_MARIYAPPAN)\
**Post date:** [March 29, 2023, 1:27pm UTC](https://forum.playcanvas.com/t/how-to-reduce-loading-time/30357/1 "2023-03-29T13:27:17Z")

</div>

Hi Team,

I have created a virtual showroom project for a set of 3-wheeler vehicles. Users will click on the vehicle image to load the 3D model of the vehicle to have a 360 degree interactive experience of the vehicle. Unfortunately, when the 3D model is launched it takes longer time to load. Can you help out on how to improve the loading time?

I am using glb files in this project. My project size is around 80 MB. There are 52 glb files (total size 40 MB and the biggest files is 8.7 MB), 137 png files (total size 6 MB), 56 jpg files (total size 12 MB) and remaining js and supporting files generated by PlayCanvas.

Any help would be highly appreciated.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Devortel](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/devortel/32/22582_2.png) [@Devortel](https://forum.playcanvas.com/u/Devortel)\
**Post date:** [March 29, 2023, 1:52pm UTC](https://forum.playcanvas.com/t/how-to-reduce-loading-time/30357/2 "2023-03-29T13:52:34Z")

</div>

Here are some _easy_ things you can do to reduce the download size:

- Use Draco compression for all your .glb files. The PlayCanvas team recently added this to the editor. Check [this tutorial](https://developer.playcanvas.com/en/tutorials/loading-draco-compressed-glbs/). Draco can reduce the .glb size by 50-80% depending on the mesh. Keep in mind Draco is lossy.

- Try reducing the dimensions of your png files. If they’re 2048x2048, can you get away with 1024x1024?

- Run your png files through a lossless png compressor like [Tinypng](https://tinypng.com/). This can reduce the png sizes by 60-80% with no drop in quality.

Also check the [load time optimization](https://developer.playcanvas.com/en/user-manual/optimization/load-time/) page in the PlayCanvas user manual. There is a ton of extra detail there.

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [March 29, 2023, 2:27pm UTC](https://forum.playcanvas.com/t/how-to-reduce-loading-time/30357/3 "2023-03-29T14:27:36Z")

</div>

There’s also this page with information about asset preloading and streaming: [Preloading and Streaming | Learn PlayCanvas](https://developer.playcanvas.com/en/user-manual/assets/preloading-and-streaming/)

Are your filesizes including gzip compression?

---

<div class="post-metadata">

**Author:** ![SWEETAN\_MARIYAPPAN](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/sweetan_mariyappan/32/10744_2.png) [@SWEETAN\_MARIYAPPAN](https://forum.playcanvas.com/u/SWEETAN_MARIYAPPAN)\
**Post date:** [March 30, 2023, 6:50am UTC](https://forum.playcanvas.com/t/how-to-reduce-loading-time/30357/4 "2023-03-30T06:50:49Z")

</div>

Thank you for the quick reply.  
No files are not gzip compression. Already I have used Preloading proprieties for necessary models. Any other solutions?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![SWEETAN\_MARIYAPPAN](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/sweetan_mariyappan/32/10744_2.png) [@SWEETAN\_MARIYAPPAN](https://forum.playcanvas.com/u/SWEETAN_MARIYAPPAN)\
**Post date:** [March 30, 2023, 6:56am UTC](https://forum.playcanvas.com/t/how-to-reduce-loading-time/30357/5 "2023-03-30T06:56:44Z")

</div>

Thank you for the quick reply.  
I have used the fbx file format to import models the Playcanvas is converted fbx to glb. So how to do the Draco compression inside the Playcanvas?. Are I need to reimport the models in glb format?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [March 30, 2023, 9:01am UTC](https://forum.playcanvas.com/t/how-to-reduce-loading-time/30357/6 "2023-03-30T09:01:22Z")

</div>

> [@SWEETAN\_MARIYAPPAN](#):
>
> No files are not gzip compression.

I would remeasure with gzip compression values as many the files like JS, JSON etc get A LOT smaller.

Draco compression can be seen here: [https://developer.playcanvas.com/en/user-manual/assets/import-pipeline/#mesh-compression](https://developer.playcanvas.com/en/user-manual/assets/import-pipeline/#mesh-compression)

After that is ticked, you can right click on FBX source and re-import.

I would focus on preloading only what you need and streaming other assets on demand first though.

---

<div class="post-metadata">

**Author:** ![SWEETAN\_MARIYAPPAN](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/sweetan_mariyappan/32/10744_2.png) [@SWEETAN\_MARIYAPPAN](https://forum.playcanvas.com/u/SWEETAN_MARIYAPPAN)\
**Post date:** [March 30, 2023, 11:40am UTC](https://forum.playcanvas.com/t/how-to-reduce-loading-time/30357/7 "2023-03-30T11:40:09Z")

</div>

Thank you for the quick reply.  
I have used Draco compression it reduced 4MB in total files and also I have done other methods to reduce the fbx file size. Now the total file sizes is 65.3MB. When I use playcanvas launch (web) it’s loading time is 21.61s. In hosting site (web) it’s taken 35.12s and mobile it’s taken 1:01s.It’s there any other options to load faster?

Note:“playcanvas-1.61.3.dbg.js” is 3MB any options to reduce this?

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [March 30, 2023, 11:51am UTC](https://forum.playcanvas.com/t/how-to-reduce-loading-time/30357/8 "2023-03-30T11:51:36Z")

</div>

When you publish either to playcanv.as or self host, it will include the minified version of the engine which is about 400KB GZIPed.

I recommend publishing to playcanv.as as that will include gzip support and remeasure.

> [@yaustar](#):
>
> I would focus on preloading only what you need and streaming other assets on demand first though.

Even after all of that, you still have to do this which Devortel posted resources for. There’s only so much you can do with filesizes of assets without reducing quality. Eg reducing the dimensions of textures.

> [@Devortel](#):
>
> Also check the [load time optimization](https://developer.playcanvas.com/en/user-manual/optimization/load-time/) page in the PlayCanvas user manual. There is a ton of extra detail there.

---

<div class="post-metadata">

**Author:** ![SWEETAN\_MARIYAPPAN](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/sweetan_mariyappan/32/10744_2.png) [@SWEETAN\_MARIYAPPAN](https://forum.playcanvas.com/u/SWEETAN_MARIYAPPAN)\
**Post date:** [March 30, 2023, 2:15pm UTC](https://forum.playcanvas.com/t/how-to-reduce-loading-time/30357/9 "2023-03-30T14:15:33Z")

</div>

Thanks very much for the suggestions.

If I publish the output to playcanv.as, I can see the output loading faster. Will this playcanv.as link be forever active? Or should I keep on renewing our Play Canvas account continuously? Can you please clarify?

Thanks once again.

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [March 30, 2023, 2:36pm UTC](https://forum.playcanvas.com/t/how-to-reduce-loading-time/30357/10 "2023-03-30T14:36:07Z")

</div>

> [@SWEETAN\_MARIYAPPAN](#):
>
> Will this playcanv.as link be forever active?

Yes, but they aren’t CDN’ed. We generally recommend using playcanv.as for dev/test/review builds and self host for production.

Some users use S3 with Cloudfront (that supports gzip compression) for self hosting for example.

---

<div class="post-metadata">

**Author:** ![SWEETAN\_MARIYAPPAN](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/sweetan_mariyappan/32/10744_2.png) [@SWEETAN\_MARIYAPPAN](https://forum.playcanvas.com/u/SWEETAN_MARIYAPPAN)\
**Post date:** [March 31, 2023, 2:26pm UTC](https://forum.playcanvas.com/t/how-to-reduce-loading-time/30357/11 "2023-03-31T14:26:35Z")

</div>

Sorry for the delay reply.  
Thanks for your support. I have done the Draco compression, it’s reduced lot of size I am happy for that (Now File size is 31MB). Now much better. Is there any option to use webp format Instead of using png and jpg for reduce file size?  
Thanks a lot.

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [March 31, 2023, 2:51pm UTC](https://forum.playcanvas.com/t/how-to-reduce-loading-time/30357/12 "2023-03-31T14:51:40Z")

</div>

> [@SWEETAN\_MARIYAPPAN](#):
>
> Is there any option to use webp format Instead of using png and jpg for reduce file size?

Not out of the box. You will have to postprocess (with a script usually) the build where you convert the images to WebP and update config.json to reference the WebP files instead of PNG/JPEG.

We have WebP support as a feature request here: [Add .webp upload support · Issue #991 · playcanvas/editor · GitHub](https://github.com/playcanvas/editor/issues/991)

---

<div class="post-metadata">

**Author:** ![davord\_stiphon](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/davord_stiphon/32/26199_2.png) [@davord\_stiphon](https://forum.playcanvas.com/u/davord_stiphon)\
**Post date:** [April 5, 2023, 7:23am UTC](https://forum.playcanvas.com/t/how-to-reduce-loading-time/30357/13 "2023-04-05T07:23:16Z")

</div>

The Play Canvas is the same of the Canva Apk we see in plays tore or app stores?

---

<div class="post-metadata">

**Author:** ![Devortel](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/devortel/32/22582_2.png) [@Devortel](https://forum.playcanvas.com/u/Devortel)\
**Post date:** [April 5, 2023, 11:41am UTC](https://forum.playcanvas.com/t/how-to-reduce-loading-time/30357/14 "2023-04-05T11:41:42Z")

</div>

To my knowledge, there is no connection between PlayCanvas and Canva products. They are unrelated.

---

<div class="post-metadata">

**Author:** ![davord\_stiphon](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/davord_stiphon/32/26199_2.png) [@davord\_stiphon](https://forum.playcanvas.com/u/davord_stiphon)\
**Post date:** [April 6, 2023, 10:20am UTC](https://forum.playcanvas.com/t/how-to-reduce-loading-time/30357/15 "2023-04-06T10:20:19Z")

</div>

> [@davord\_stiphon](#):
>
> The Play Canvas is the same of the Canva Apk we see in plays tore or app stores?

But they are unrelated? Canvas is also referred as Canva.

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [April 6, 2023, 10:31am UTC](https://forum.playcanvas.com/t/how-to-reduce-loading-time/30357/16 "2023-04-06T10:31:45Z")

</div>

> [@davord\_stiphon](#):
>
> But they are unrelated? Canvas is also referred as Canva.

We are unrelated.
