Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Bug How do you Compile Shaders once and for all

Discussion in 'Editor & General Support' started by Marc-Saubion, Apr 17, 2024.

  1. Marc-Saubion


    Jul 6, 2011

    A recurring problem I have when working is selecting a model using a non compiled shader making the editor freeze while compiling them. It's disruptive and would be unnecessary if I would have that done on all shaders in advance.

    I just tried Unity's own URP sample project and its even worse. It's unusable as it freezes in both gameplay and editor as soon as you try doing anything.

    What am I missing?
  2. CodeSmile


    Apr 10, 2014
    What editor version? Systems specs?

    My exp with URP shaders is that upon entering playmode, everything is light blue for a few seconds but everything is functional and responsive, both game and editor UI. Then, bit by bit, the light blue parts start rendering normally. That's in Unity 6 but I can't remember this working any other way before.

    I wonder if there is perhaps a Preferences item that forces shaders to compile synchronously for you?