# How can I keep frame rate stable when loading asset?

**URL:** <https://forum.babylonjs.com/t/how-can-i-keep-frame-rate-stable-when-loading-asset/23816>\
**Category:** Questions\
**Created:** [September 14, 2021, 6:30am UTC](https://forum.babylonjs.com/t/how-can-i-keep-frame-rate-stable-when-loading-asset/23816 "2021-09-14T06:30:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zion\_Huang](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/zion_huang/32/16569_2.png) [@Zion\_Huang](https://forum.babylonjs.com/u/Zion_Huang)\
**Post date:** [September 14, 2021, 6:30am UTC](https://forum.babylonjs.com/t/how-can-i-keep-frame-rate-stable-when-loading-asset/23816/1 "2021-09-14T06:30:12Z")

</div>

When assets are loading, frame rate always gets extremely low. This is not a good experience for players I guess. I know loading and rendering are both in one thread, but can we set a priority for rendering? I want to keep frame rate at 30fps, then rest of thread time is given to loading asset.

---

<div class="post-metadata">

**Author:** ![Regit](https://avatars.discourse-cdn.com/v4/letter/r/6a8cbe/32.png) [@Regit](https://forum.babylonjs.com/u/Regit)\
**Post date:** [September 14, 2021, 7:47am UTC](https://forum.babylonjs.com/t/how-can-i-keep-frame-rate-stable-when-loading-asset/23816/2 "2021-09-14T07:47:40Z")

</div>

This is a question that crossed me as well and was further discussed here: [Throttle processing power/bandwidth to keep stable FPS during loading](https://forum.babylonjs.com/t/throttle-processing-power-bandwidth-to-keep-stable-fps-during-loading/20580)

In the end it depends on your use case. I’m seperating what should be loaded in the beginning behind a loading screen and what can be loaded on the fly. When models are small and [optimized](https://github.com/zeux/meshoptimizer/tree/master/gltf) there is almost no stutter on load.  
I think the biggest issue is the texture loading. That’s why I first load my models with compressed textures and then add the normal textures while the user can look at the models.

If that won’t work for your use case a worker thread might be something to look into.
