example of case:
I believe it’s due to parrallel shader compilation. See Assigning a material to be transparent with needDepthPrePass causes a black flash - #2 by sebavan for a fix
1 Like
Yup, compile shader will incur some delay so you could disable parallel shader compilation before this action.
Also in practice it is pretty rare to dynamically need those changes in real time ?