Slightest use of material editor causes shader compile

I have a really anoying problem with the material editor and general use of the engine.

Everytime I place or move an object in the viewport the engine wants me to rebuilt the lightning, the warning message is
there the whole time until I rebuilt. I also can’t ignore it since the light is wrong, not as bright and the shadows not right.

The more anoying problem is the material editor. Everytime I open it, the engine starts to compile shaders, seemingly all of them. If I move a node without connecting or disconecting anything it starts to recompile the material.
I can’t really work with it or try stuff out since the slightest change restarts the shader compilation.
I can’t view the material until the compilation is done. You can imagine how much time it takes to just change the color.

This problem occured to me after installing the 4.22 Engine with a new Project.
I had worked on the 4.18 and 4.19 before on a different project and never had this problem.
All I can tell is after the project was created I accidently pressed the build button and it for some reasone it’s fked up now after I did it once.

Also sometimes shader compile numbers are in the negative ( -219 for example ).

My specs:

CPU 3.60GHz Intel Core i5
GPU Nvidia GEforce GTX 1070 Ti
Ram 16gb

If you need more please ask me, I wish for nothing more then to be able to continue working on my game :c

Two things:

( Excuse me if you know this already )

  1. If you use static lighting, any time you move an object, you will have the rebuild message until the end of time or, until you rebuild lighting. If you specifically want to use static lighting, then switch to moveable while you build the level and switch back to static when you’re ready to build.

  2. If you are using ‘raw’ materials on anything, every time you so much as ‘touch’ the material editor, it will re-compile. The only way to avoid this, and the way the engine is meant to work, is to use material instances. You will not get any recompilation with instances. Yes, you have to work with the material editor when you’re designing the material, but then you probably wont have a level full of actors covered in the stuff. When you’re ready to use the material, make an instance, which will contain all of the variables you made in the main material, and tweak away to you heart’s content with nary a shader complile :slight_smile:

Thanks, completley forgot the part with the light, it worked!

The part with material instances is, it works, I can change variables and all but I hadn’t this problem before in 4.18, I could change parameters in the editor and it took seconds to update, no shader compilation, but maybe because I made a game for android with low quality materials.

Thank you, now everythings fine again! :smiley: