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
Comments (2)
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
- Too little validation messages in the "WebAssembly Language Features" Memory settings
- Project Settings Search Highlights are misaligned when using the Bitmap Text Rendering Mode
- "GetControlID at event ValidateCommand returns a controlID different from the one in Layout event" Warning is thrown when undoing the deletion of Sprite Shape Profile
- Memory related fields in the "WebAssembly Language Features" can be set to the negative numbers
- "WebAssembly Language Features" Header in the Player Settings has a smaller indentation
yinghuizhou1991
Sep 03, 2019 12:35
Reproduced on Unity 2018.4.8f1
yinghuizhou1991
Sep 03, 2019 11:27
Reproduced on Unity 2018.4.4f1