Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Texture.AwakeFromLoad performance when calling Resources.LoadAsync

Discussion in 'Editor & General Support' started by pep_dj, Jul 13, 2017.

  1. pep_dj

    pep_dj

    Joined:
    Nov 7, 2014
    Posts:
    178
    Texture.AwakeFromLoad tooks about 17 ms when calling Resources.LoadAsync (I'm loading a prefab that contains a sprite renderer). Why it takes 17ms in main thread if is supposed that it works asynchronously?
     
  2. DmitryAndreevMel

    DmitryAndreevMel

    Joined:
    Mar 7, 2017
    Posts:
    14
    Have the similar problem: during LoadSceneAsync the cubemap texture takes a lot of time from render thread doing Gfx.UploadTexture in one take (20ms on device). Is there a workaround to use async texture upload (https://docs.unity3d.com/Manual/AsyncTextureUpload.html) during async scene loading?

    Unity 2017.1.1f1
     
  3. rahulk1991

    rahulk1991

    Joined:
    Feb 22, 2019
    Posts:
    12
    BUMP
    Still taking a lot of CPU time on 2019.1.8f