SoftMaskForUGUI
SoftMaskForUGUI copied to clipboard
Big performance hit (CPU + GC Alloc) coming from SoftMaskable.UpdateMaterialForSceneView

This is for ~300 SoftMaskables. All of the allocation comes from accessing mat.shader.name, and then there's the "Set view and projection matrices" part as well which takes a decent amount of time. I am aware that function runs only in editor, but this performance hit is still pretty harsh for productivity.
Perhaps you could restrict this function to running only when the SceneView is visible in the editor? Currently, it will run whether the SceneView is visible or not.
@oxysoft Thank you for your reporting!
Any update on this?