Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity.RenderPipelines.HighDefinition.Runtime.dll constantly recompiled.

Discussion in 'High Definition Render Pipeline' started by visose, Oct 8, 2021.

  1. visose

    visose

    Joined:
    Nov 2, 2014
    Posts:
    28
    Using Unity 2021.1.17f1, HDRP 11.

    When entering play mode, the game starts properly, but after a couple of seconds inside play mode, the "Compiling C# scripts" dialog box pops up blocking the UI for about 10 seconds or longer before allowing to continue testing in play mode.

    Checking under the project's Library/ScriptAssemblies I can see that Unity.RenderPipelines.HighDefinition.Runtime.dll has been modified while the dialog was open. The same thing happens once again again after stopping play mode.

    It's not a small assembly (2.371 MB) so constantly recompiling is taking considerable time.
     
    Last edited: Oct 8, 2021
  2. visose

    visose

    Joined:
    Nov 2, 2014
    Posts:
    28
    This was due to calling QualitySettings.SetQualityLevel on the Start method of a scene.
    It is not completely clear if SetQualityLevel should be used at runtime with HDRP.
     
    PutridEx likes this.