Search Issue Tracker
By Design
Votes
0
Found in
2019.4
2020.3
2020.3.29f1
2021.3
2022.1
2022.2
Issue ID
1411407
Regression
No
Unity default "Particles/Standard Surface" Shader allocates too much memory compared to other Shaders
How to reproduce:
1. Open the attached "case_1411407" project
2. Open the "Window -> Analysis -> Memory Profiler" window from the menu
3. Capture a new Snapshot and select it
4. Select the "Shader" object category in the Tree Map
5. Observe the displayed object sub-categories of the "Shader" category
Expected result: Maximum size of the "Particles/Standard Surface" Shader is ~2 MB
Actual result: "Particles/Standard Surface" Shader takes 30-72 MB (depends on Unity version) compared to other Shaders, which maximum size is ~2 MB
Reproducible with: 2019.4.39f1, 2020.3.34f1, 2021.3.3f1, 2022.1.1f1, 2022.2.0a13
Note: Shader size trend:
2019.4.0f1 - 35.2 MB, 2019.4.39f1 - 71.2 MB
2020.3.34f1 - 71.8 MB
2021.3.3f1 - 72.5 MB
2022.1.1f1 - 72.2 MB
2022.2.0a13 - 72.3 MB
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
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
Resolution Note:
Hi,
This shader has a lot of variants therefore takes up a lot of memory in the Editor.
However, only used variants should take up space in player data. So memory usage should be much lower there unless lots of particle variants are being used.