Pefroamnce BUG A lot of GC when loading Subscene

As shown in the picture,there's a lot GC When loading Subscene,which causing CPU Spike.
7647169--953314--upload_2021-11-11_16-42-39.jpg

And someof code with GC problems
7647169--953317--upload_2021-11-11_16-46-18.png
7647169--953320--upload_2021-11-11_16-46-23.png

You can avoid running the "m_MissingSHQueries" code by ensuring that your entities already have the corresponding light probe components when initially loaded, which saves the light probe system from having to create them.

We will try to optimize the Hybrid Renderer ID allocation in a future version.

1 Like

Also, make sure you have leak tracking completely disabled when profiling this, as it significantly increases allocation costs.

1 Like