MaterialEditor.OnEnable super slow

A whole second per material on the object.
Using version 2018.3.3f1

Also happens on 2019.1.1f1

Is there a way to disable the custom editor besides using debug mode? I’d like for it to be disabled just for materials, not for everything else

Adding a copy of the standard shader gui on my project eased the issue. Reduces the gui loading time from 26 to 3 seconds. Still unacceptable, but usable
No StandardShaderGUI copy:


With StandardShaderGUI copy:

Would it cost too much to cache which class is making the shader GUI? this thing is is doing the same operation 15 times because my mesh have 15 materials using the standard shader

Have the same problem here. Here are my screenshots with deep profile activated. Don’t know where it comes from.

CPU :

GPU :

We’re seeing this same issue in 2018.3.13f1, with a similar profile. We use custom shaders and a custom editor, the issue goes away if I remove the CustomEditor line from our shaders (but it persists if I just comment out the custom editor). Switching the view to Debug also works.

It makes the editor painfully slow to use.

Has anyone reported this as an issue?

Same issue - have no idea what to do ( pls, help

I’ve reported this to Unity. I couldn’t reproduce it in a small test project, so I think it might be somehow related to the size of the codebase.

If someone is seeing this issue in a project that they don’t mind attaching to a bug report, could you do this please? Especially if it’s on the latest version of Unity.

1 Like

Updated to 2019.1.10f1 the issue is still here, can not work((

Temporary solution

Having the same issue, very frustrating

I m still using path, it helps
https://forum.unity.com/threads/ext…s-in-project-2018-3-12f1.661390/#post-4772726