Search Issue Tracker
Fixed in 5.3.6
Votes
2
Found in
5.4.0b13
Issue ID
784481
Regression
No
Coroutines generate garbage in MoveNext
Coroutine::MoveNext causes the return value (a bool) to be boxed, which causes an allocation.
Reproduction Steps:
1. Run the attached project
2. Open the Profiler and sort by GC Alloc
3. Observe that FlagEndOfFrame is allocated 17B of garbage every frame
Expected Result:
It should be possible to run a coroutine without generating any garbage at all.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Highlighter.Highlight does not find window when using class name as window title
- Highlighter.Highlight highlights a different component when multiple components have the same property path
- Highlighter.Highlight does not find elements in an array or list when the array or list is collapsed
- [URP][NRP] RenderPass, BeginSubPass, and EndRenderPass errors are thrown when Native RenderPass is enabled
- D3D11 swapchain error pop-up appears and the Editor shuts down when Generating Lighting with Probe Volumes present
jalf
Aug 22, 2017 04:04
It´s really fixed?!
Dino Dini
Mar 31, 2016 21:59
Also seen in 5.3.4f1. For any project using a lot of coroutines, this is a lot of garbage.