Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

LoadAssetAsync() freezes/stutters app when loading the assets, not sure why

Discussion in 'Addressables' started by EricMay, Feb 19, 2020.

  1. EricMay

    EricMay

    Joined:
    Feb 2, 2018
    Posts:
    6
    Hello!

    I have a system set up right now to load/unload some addressable assets at runtime. I am using LoadAssetAsync() with the purpose of preventing the app from freezing. However, the app still stutters/freezes when it loads an asset. Does anyone have some ideas on how I can fix this? Here's my code:



    One thought I had is maybe it's still loading these assets on the same thread as the app? I'm not sure how to tell LoadAssetAsync() to only not use the main app thread however...

    Anyways, if anyone has some ideas/tips all help is greatly appreciated. Thank you!
     
  2. ProtoTerminator

    ProtoTerminator

    Joined:
    Nov 19, 2013
    Posts:
    583
    Try disabling CRCs in your addressable asset groups. I noticed that made my WebGL app stutter, and disabling it fixed it.
     
    stonstad and EricMay like this.