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. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Question Anyone getting more than 60 fps with HDRP VR

Discussion in 'VR' started by adamz, Jul 14, 2022.

  1. adamz

    adamz

    Joined:
    Jul 18, 2007
    Posts:
    1,166
    Hey everyone, I tried creating an empty scene with all the post processing turned off, and I can't get more than 60 frames per second with hdrp. I have a high-end pc, with a 3070 graphics card. Anyone know why I won't go higher than that when I play the scene using quest and link? Standard and urp work fine, they can easily get 120 fps.
     
    Last edited: Jul 14, 2022
  2. DylanF

    DylanF

    Joined:
    Jun 25, 2013
    Posts:
    47
    Yes, I can get very high VR framerates on a 3070. Try disabling HDRP features like shadows and volumetrics to see how that goes.
     
  3. colinleet

    colinleet

    Joined:
    Nov 20, 2019
    Posts:
    145
    Motion blur is a big offender too, and that's typically on by default.
    Also the physically accurate sun and sky can be quite expensive.
     
  4. adamz

    adamz

    Joined:
    Jul 18, 2007
    Posts:
    1,166
    Thanks for the suggestions
     
  5. adamz

    adamz

    Joined:
    Jul 18, 2007
    Posts:
    1,166
    Thanks for tip.
     
  6. DylanF

    DylanF

    Joined:
    Jun 25, 2013
    Posts:
    47
    BTW, I do use volumetrics in my project. Probably any of the expensive features can be used in VR, but not all of them.
     
  7. adamz

    adamz

    Joined:
    Jul 18, 2007
    Posts:
    1,166
    I downloaded the latest version of Unity, and only disabling motion blur got me 120fps. Not sure what happened before but I'm glad it's working now.
     
  8. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Motion blur (regardless of its use or not) should never be that expensive. Good find. I think it is a bug for it to be that much of a hog. Or some workaround someone slipped in like doing all the work twice. Doing anything twice in HDRP land is pretty much suicide.
     
  9. adamz

    adamz

    Joined:
    Jul 18, 2007
    Posts:
    1,166
    There must be something Im missing. If I create a 'Basic Outdoors (HDRP)' scene, convert the camera to an XR rig, and Play the scene I get 60 FPS when looking at the horizon. When I look into the sky I get 120 fps. It seems that the Physically Based Sky is a performance hog. I left it at the default settings. The gradient and HDRI sky work fine. Am I missing something?
     
  10. adamz

    adamz

    Joined:
    Jul 18, 2007
    Posts:
    1,166
    I also find it interesting that if I keep the Physically Based Sky, add Crest Ocean with underwater rendering, and add volumetric clouds I still get 60fps. Unity must be doing something behind the scenes to cap it at that. My fixed timestep is set to 0.008333334 which is 120 fps. Is there another place I can look to get the FPS higher?
     
  11. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    2,043
    Disabled vsync?
     
  12. adamz

    adamz

    Joined:
    Jul 18, 2007
    Posts:
    1,166
    Under Quality > VSync Count I set it to Don't Sync, and that didn't work. Thanks for the tip though.
     
  13. adamz

    adamz

    Joined:
    Jul 18, 2007
    Posts:
    1,166
    Here is a capture of my profiler.

    Profiler.jpg
     
  14. Innovine

    Innovine

    Joined:
    Aug 6, 2017
    Posts:
    488
    I have a 3080. I only get about 60-70fps. My gpu is showing 11% usage. It won't go faster. The fans don't even come on. Thanks, unity
     
  15. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    2,043
    Check the profiler to see what causes the bottleneck instead of instantly blaming it on unity
     
  16. Innovine

    Innovine

    Joined:
    Aug 6, 2017
    Posts:
    488
    The editor loop takes 60%. unity takes one full core and thats it. Rest of machine totally idle. I blame unity. 20% cpu use, 11% gpu use, and my game stuttering and jerking along dropping frames.