#(IN-36009) [Addressables 1.21.9] GC spike every frame
1 messages · Page 1 of 1 (latest)
🤔 It's really weird that why after installing Unity Profiling Core API it keep generating gc spike every frame? Is that Addressables integrates Unity Profiling Core API badly or Unity Profiling Core API package has gc issue by default?
do you know what is the callstack of the allocation? you can check it with enabling "Callstack" toggle in Unity Profiler and clicking on GC.Alloc smple in the timeline view (or hierarchy view) - https://docs.unity3d.com/2022.2/Documentation/Manual/ProfilerCPU.html#call-stacks
Alright here it's.
0.033ms
Current frame accumulated time:
0.422ms for 40 instances on thread 'Main Thread'
Size: 80
Call Stack:
Unity.ResourceManager.dll!UnityEngine.ResourceManagement.Profiling::ProfilerRuntime.RefreshChangedReferenceCounts() <a href="./Library/PackageCache/com.unity.addressables@1.21.9/Runtime/ResourceManager/Diagnostics/Profiling/ProfilerRuntime.cs" line="208">./Library/PackageCache/com.unity.addressables@1.21.9/Runtime/ResourceManager/Diagnostics/Profiling/ProfilerRuntime.cs:208</a>
Unity.ResourceManager.dll!UnityEngine.ResourceManagement.Profiling::ProfilerRuntime.PushToProfilerStream() <a href="./Library/PackageCache/com.unity.addressables@1.21.9/Runtime/ResourceManager/Diagnostics/Profiling/ProfilerRuntime.cs" line="199">./Library/PackageCache/com.unity.addressables@1.21.9/Runtime/ResourceManager/Diagnostics/Profiling/ProfilerRuntime.cs:199</a>
Unity.ResourceManager.dll!UnityEngine.ResourceManagement.Profiling::ProfilerRuntime.InstanceOnOnLateUpdateDelegate() <a href="./Library/PackageCache/com.unity.addressables@1.21.9/Runtime/ResourceManager/Diagnostics/Profiling/ProfilerRuntime.cs" line="48">./Library/PackageCache/com.unity.addressables@1.21.9/Runtime/ResourceManager/Diagnostics/Profiling/ProfilerRuntime.cs:48</a>
Unity.ResourceManager.dll!::MonoBehaviourCallbackHooks.LateUpdate() <a href="./Library/PackageCache/com.unity.addressables@1.21.9/Runtime/ResourceManager/Util/MonoBehaviourCallbackHooks.cs" line="34">./Library/PackageCache/com.unity.addressables@1.21.9/Runtime/ResourceManager/Util/MonoBehaviourCallbackHooks.cs:34</a>