Search Unity

Question GC.Alloc ftLightmapStorage.Awake Frame Stutter on Async Load

Discussion in 'VR' started by Immersive-Matthew, Jul 2, 2022.

  1. Immersive-Matthew

    Immersive-Matthew

    Joined:
    Mar 24, 2020
    Posts:
    137
    I need help and am hoping anyone can give me some insights here.

    I am seeing hundreds and even thousands of GC.Alloc under ftLightmapsStorage.Awake() every time I async load a scene which causes a major frame stutter. (see attached snippet that is so big I cannot capture it all)



    My title runs on rails (Cinemachine) and thus has a very consistent run through and this issue never happened before and does not happen consistently. Some builds are stuttery and the next with nothing changed does not have this error/stutter.

    Profiler Data Linked here (look for the big ms frames): https://drive.google.com/file/d/1vGfzvKvumlrVxqnVSv34Ep81cMtYVfpY/view?usp=sharing

    I am on URP with Vulkan but the same issue occurs on OpenGL and no matter the versions of URP, Oculus Integration version or Unity etc., the same issue occurs. Any insights as to the cause of this issue?

    Thanks for the support!!!