Search Issue Tracker
Fixed in 14.0.2
Votes
1
Found in [Package]
12.0.0
Issue ID
1305929
Regression
Yes
[VFX] Empty Visual Effect Component generates about 14 KB of Garbage every frame in the Editor
1. Open the attached project named "Case_1305929"
2. Open the SampleScene
3. Open the Profiler Window and switch it to the Editor mode
4. Check the reading for GC allocations in the Memory section
5. Right-click in the Hierarchy window and add a new Visual Effect object
6. Observe the GC allocations again
Expected results: GC Alloc does not increase, or increases only marginally since a new VFX object is completely empty and does not have a VFX asset assigned
Actual results: GC Alloc increases by ~14KB OR by ~25KB if the Visual Effect object is currently selected in the Inspector window
Reproducible with: 7.5.2(2019.4.19f1), 2020.2.3f1(10.2.2), 2021.1.0b3(11.0.0), 2021.2.0a2(12.0.0)
Notes:
1. Reproducible with URP and HDRP
2. Does not reproduce in a Build
3. The memory amount does not seem to increase when the number of Visual Effect objects is increased. GC Allocated memory stays the same as described in the Actual results section
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
- CurveTexture is not being released when unloading AssetBundle containing a Scene with ColorCurves post-processing component in Global Volume
- Crash on ExtractActiveCasterInfo when navigating the scene view in a project with specific lighting data
- Build Profile name increments when numeric suffix is removed from duplicate Profile name
- "Unrecognized block header in profiler data file, stopping deserialization" error is shown and no more profiler data is recorded when the Player is connected and profiler recording is enabled/disabled few times
- Shader error and warnings thrown when setting HDRP as an Active Target in Blank Shader Graph
Resolution Note (fix version 14.0.2):
Fixed in 2022.2.0a9 with VFX package version 14.0.2. GC allocations have been reduced. While Visual Effect object is selected - ~13.7KB (Versus ~25KB in previous versions). While Visual Effect object is not selected - ~7.5KB (Versus 14KB in previous versions)