Search Unity

Frame rate expectations for demo

Discussion in 'High Definition Render Pipeline' started by RoughSpaghetti3211, May 16, 2020.

  1. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,709
    I’m staring a new project in HDRP and thought I would check out the demo scene. I’m barely getting 30 FPS in the editor. Is this expected .

    I also tested some procedural sphere building code into the demos scene and deleting the demo asset. My frame rate in build in was 400+ and I’m only see 70+. Is something broken ?

    MacBook Pro (15-inch, 2016),
    2.9 GHz Intel Core i7,
    Radeon Pro 460 4 GB
     
  2. rz_0lento

    rz_0lento

    Joined:
    Oct 8, 2013
    Posts:
    2,361
    Editor perf is always a lot slower. Also you can't really compare built-in and HDRP while using their default settings as it's not 1:1 comparison at all because HDRP enables a ton of feats out of the box that built-in doesn't even have.

    HDRP will also always be slower than built-in on small scenes regardless, it's due to the initial overhead it has. But you can close the gap a lot by actually disabling everything fancy from HDRP (that built-in renderer doesn't feature) using HDRP asset, frame settings etc. There's a ton of things going on by default on HDRP template alone. When I did some scalability testing on HDRP recently, I got a scene that took 5ms to render on my rtx2070s to go down to 2.6ms (or actually down to 2.1ms without dynamic shadows). So there's quite big gains to be had just by tweaking the settings.

    Of course this was tested on relatively powerful GPU, I plan to make some better test later on with actually weak hardware to see how it performs there.

    Btw, that Radeon Pro 460 is the weak link here, wouldn't expect that much from it.
     
  3. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,709
    Thank you for the great info. I’m still a bit surprised how slow it’s rendering a sphere. Maybe I will profile it tonight and pick your brain
     
  4. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,709
    Here is a screen grab . One sphere with one shader in the scene. Also seeing a lot of GC allocations


    Screen Shot 2020-05-16 at 3.49.19 PM.png
     
  5. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,709
    a sphere in the demo scene setup
    Screen Shot 2020-05-16 at 3.57.34 PM.png