Search Issue Tracker
By Design
Votes
0
Found in
5.1.0f3
Issue ID
704392
Regression
No
GetComponent() allocates memory on each call
How to reproduce:
1. Open attached project
2. Open scene scene.unity
3. Open the Profiler window
4. Enable Deep Profiling
5. Play the scene
- Notice how BehaviourUpdate/TestCode.Update()/Component.GetComponent()/Component.GetComponentFastPath() allocates GC for each call, even though nothing changed in between calls
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [iOS] Postprocessing errors appear when using RenderGraph and NativeRenderPass
- Can't add a Scene to a Baking Set when it has just been deleted from the Set
- [iOS 17] "Malformed URL" error is thrown when using UnityWebRequest with a URI containing "[]"
- [Android] Player crashes at launch with error when built with custom Editor build
- Bloom effect is different from a standalone platform when a Scene uses HDRI lighting and the effect is used in WebGL
Add comment