Search Issue Tracker
Fixed in 2018.4.X
Fixed in 2019.1.X, 2019.2.X
Votes
0
Found in
2017.4.0f1
2018.3.0a1
2018.3.14f1
2018.4.0f1
2019.1.0a1
2019.2.0a1
2019.3.0a1
Issue ID
1154688
Regression
No
System becomes slow when using a Particle System with a Material that has a Shader that uses a Custom Shader GUI
When using a Particle System with a Material that has a Shader that uses a Custom Shader GUI it will end up in a state where every redraw of the Particle System GUI will cause a whole new Instance of the Custom Editor GUI to be created. That causes Windows and macOS to become super slow and gives a bad framerate.
To reproduce:
1. Download attached “ShaderGUIBugRepro.zip" project and open in Unity
2. Open "ReproScene" scene
3. Select the "Particle System" gameObject
4. Notice that the ShaderGUI Script logs in the Console once when selected (expected behavior), indicating that a new Instance of the Custom Editor was created
5. Modify any settings in the Shader by the Particle Material Inspector, like starting to drag the "Soft Particle Factor" slider
6. Notice that starts spamming the Console with a debug.log that is written whenever a new Instance of the Custom Editor is created
Notes:
- This issue appears both on Windows and macOS
- It stops spamming messages if Project is saved
- If this issue does not reproduce after sliding a Slider, then select another gameObject and then select "Particle System" gameObject
- If you still can’t reproduce it with those steps, please try uncompressing a new copy of the project and try again
Reproduced on Unity 2017.4.0f1, 2017.4.27f1, 2018.3.14f1, 2018.4.1f1, 2019.1.4f1, 2019.2.0b3 and 2019.3.0a3
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
- "Development Build" watermark is shown in non-development UWP release builds
- Console errors appear when the Inspector is set to Debug and a GameObject is selected
- A script public variable value is not used when set in the Inspector window
- Inspector window's ObjectFields are not updating correctly
- Linker error when building with the MRTK Graphics Tools package and Managed Stripping Level is set to High
yinghuizhou1991
Sep 03, 2019 12:35
Reproduced on Unity 2018.4.8f1
yinghuizhou1991
Sep 03, 2019 11:27
Reproduced on Unity 2018.4.4f1