Search Unity

URP is slower than BuiltIn deferred

Discussion in 'Universal Render Pipeline' started by laurentlavigne, Jun 21, 2020.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,325
    47 fps vs 53fps on a rtx2060
    If this is the same on a Switch it will be both a relief and a big disapointment.

    BUILTIN:
    upload_2020-6-21_14-50-19.png

    URP:
    upload_2020-6-21_14-50-59.png
     
  2. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,325
    And 2018 LTS built-in deferred is 26% faster - sad
    on the bright side that means I won't have to switch to URP
    upload_2020-6-21_18-35-33.png
     
  3. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,705
    Did you report a bug , I’ve read that this should not be the case
     
    laurentlavigne likes this.
  4. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,325
    alright, it's logged as 1257679
     
    ROBYER1 likes this.
  5. sebas77

    sebas77

    Joined:
    Nov 4, 2011
    Posts:
    1,642
    did you enable the GPU instancing/SRP batching?
     
  6. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,325
    if you're talking about the gpu instancing option at the bottom of material yes
    and the srp batching that's default on a new urp yes as well
     
  7. FlightOfOne

    FlightOfOne

    Joined:
    Aug 1, 2014
    Posts:
    668
    Have you tried using 2019.4 LTS?
     
  8. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,325
    yep, all the way up to 2020.2, slightly faster than 2019, still slower than builtin deferred
     
  9. FlightOfOne

    FlightOfOne

    Joined:
    Aug 1, 2014
    Posts:
    668
    I have been trying out URP, at least for VR it has been really, really fast, lot faster than built in. I must say though last I tried built in was like 6 months ago and I just jumped to URP, saw that I got a huge improvements and I just stayed with it. Didn't really do a one to one test. Maybe things a different for non vr.

    Now I am trying to get HDRP to work with decent performance, and I can't say the same about that in VR.

    Although, looking at your m/s its not much different though and URP does look little better than standard too, maybe it is the cost of entry.

    Are those animated characters? what is the count?
     
    Last edited: Jun 23, 2020
  10. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,325
    PBR is only faster than URP in deferred, fwd is still much slower so that's likely what you see in VR
    Object count is 6000, all non animated, I'm doing this next, hitting transform update real hard.
    On a side note it's crazy how much slower 2019. That's one release to skip for 2020.1 it seems.
     
  11. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,325
    on-device when moving with simple lerp 2020.1 URP is 10% faster than deferred 2018.LTS built-in
     
    Rich_A likes this.
  12. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,225
    Comparing forward vs deferred isn't a 1:1 comparison and it's why we are also working on a deferred for URP. Can you show a profiler image of both so we can see where time is being spent? It's nice that URP is 10% faster on device but it would be nice to understand where the time difference you are seeing is.
     
  13. Neto_Kokku

    Neto_Kokku

    Joined:
    Feb 15, 2018
    Posts:
    1,751
    URP/LWRP was designed very specifically to replace the terrible multipass forward renderer. On a GPU with ample memory bandwidth as the 2060 it's no wonder deferred wins out in that scene, which contains dense overlapping geometry. The inverse happening on Switch, where there is less memory bandwidth, is also expected, as that becomes a bottleneck there.

    The comparison not being 1:1 is meaningless. People are making games, and in the end if A is faster than B, that's all that matters.
     
    Last edited: Jun 23, 2020
  14. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,225
    That's not actually true though - you need to use the right tools for the problem at hand, in this case deferred is a better tool than forward. It's the reason we are adding this right now to URP because it's another tool in the toolbox.
     
  15. FlightOfOne

    FlightOfOne

    Joined:
    Aug 1, 2014
    Posts:
    668
    Not to hijack but will URP also get motion vector support any time soon? I am especially after TAA which completely eliminates flickering in VR.
     
  16. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,225
    We are starting to work on motion vector support starting next week.
     
  17. FlightOfOne

    FlightOfOne

    Joined:
    Aug 1, 2014
    Posts:
    668
    I love you! You have no idea how much this mean for VR :)
     
  18. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,325
    Seeing how much faster fwd is to built in fwd I can't wait for URP deferred!
    Here are the profilers, same scene, all 100 objects moving
    URP 2020.1b12
    Note the bad look of the soft shadows
    Annotation 2020-06-23 095428.png

    (frame debug on a device is bloody amazing!)

    Built-in deferred 2020.1b12
    Comparable quality settings yields much nicer looking soft shadows
    Annotation 2020-06-23 095422.png
     
    Last edited: Jun 23, 2020