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

URP is slower than build-in pipeline in an empty scene

Discussion in 'Universal Render Pipeline' started by HatteFox, Jan 20, 2021.

  1. HatteFox

    HatteFox

    Joined:
    Jan 20, 2021
    Posts:
    12
    Hello everyone!
    I Created an empty Project with a empty scene!Nothing else,but a Skybox to render.
    Project.png
    Then I compared the performance of URP and Build-in pipeline.The result surprised me
    URP cost about 2ms and build-in cost about 1ms.Can anyone help me analyze why it is so bad!

    Build-in Profiler:
    BuildIn.png

    URP Profiler:
    URP.png
     
  2. Sky77

    Sky77

    Joined:
    Jan 30, 2014
    Posts:
    171
    I think comparing empty scenes in editor is quite pointless: you can't judge performances this way.
    Also: Built-in and URP comes with very different setup, with different visual quality. Make sure you match them before comparing.
     
    FernandoMK likes this.
  3. HatteFox

    HatteFox

    Joined:
    Jan 20, 2021
    Posts:
    12
    I have tried my best to keep the two settings consistent.but why is quite pointless!Doesn't this mean that it is better than URP from the beginning?Where should this 1ms performance be made up? Maybe i miss some key point of using URP:(
     
  4. Sky77

    Sky77

    Joined:
    Jan 30, 2014
    Posts:
    171
    The main problem is that this testing methodology does not work. Profiling an empty scene in Editor is absolutely pointless, you're probably mesuring the editor and profiler overhead... :)
    Make a test scene with a real world scenario and test it in build on the actual platform you're working on, this is the only method to get some reliable data. :)
     
    FernandoMK likes this.
  5. FernandoMK

    FernandoMK

    Joined:
    Feb 21, 2017
    Posts:
    173
    Remembering that the idea of the SRP is to be scalable, so the more things you add to it, the better the performance will be compared to the integrated mode.
     
    Erfan_SheikhHoseini likes this.