Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Do you have framerate issues with the simplest of scenes?

Discussion in 'VR' started by CrazyTegger, Jun 9, 2016.

  1. CrazyTegger

    CrazyTegger

    Joined:
    Feb 15, 2015
    Posts:
    57
    I just got my HL, and updated to the latest build, am running Unity 5.4B18 but I am having serious framerate issues on the smallest of scenes.

    In this example, I created a scene with a FPS rigid body controller, terrain and cube, that's it.

    In Unity when I run it, I get ~1000 fps. When I deploy it to the Hololens (master/x86) either as D3D or XAML, as soon as Unity starts up, it immediately goes down to 30fps from 60 and when I bring the cube into my view, it goes down to 20.

    A video of what I'm describing
    https://onedrive.live.com/redir?resid=87864328CF6E6F26!277079&authkey=!AJgq78ZoQU13e1I&ithint=video,mp4

    This is only my 2nd project in Unity, so I'm hoping there's something really dumb that I'm missing. Graphics settings are on Fastest.

    Any thoughts?
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,644
    Are you running in debug config? Did you try looking at the framerate without capturing video? AFAIK, the device throttles to 30 fps if you're doing mixed reality capture.
     
  3. CrazyTegger

    CrazyTegger

    Joined:
    Feb 15, 2015
    Posts:
    57
    Last edited: Jun 9, 2016
  4. Unity_Wesley

    Unity_Wesley

    Unity Technologies

    Joined:
    Sep 17, 2015
    Posts:
    558
    Hello,

    I looked at your project at it seems the way you have the Main Camera set up s causing the issue. I removed the Main camera from RigidBodyFPSController and the frame rate went back up to 60 fps. My guess is something you are doing with physics or the Camera stuff you do in your script might be the culprit.

    I cool trick is that if you enable InternetClient & InternetClientServer in Player Settings -> Publishing Settings ->Capabilities you can connect unity's profiler through and IP address to help track down these things in real time.

    To connect the profiler select Active profiler and then <Enter IP>

    upload_2016-6-9_11-29-17.png

    upload_2016-6-9_11-31-3.png

    I hope this helps, let me know if you have further questions.

    Thank you,
    Wesley
     

    Attached Files:

  5. CrazyTegger

    CrazyTegger

    Joined:
    Feb 15, 2015
    Posts:
    57
    I don't have any scripts on the camera. The rigidbodyfpscontroller is the default one that comes from Standard Assets.

    That's awesome about the profiler. I'll check it out and see what I can find out.
     
    Last edited: Jun 9, 2016
  6. CrazyTegger

    CrazyTegger

    Joined:
    Feb 15, 2015
    Posts:
    57
    I did what you did, and removed the rigidbodyfpscontroller entirely, but I still get the 30fps. If I look up, the framerate jumps back up to 60. Still investigating
     
  7. CrazyTegger

    CrazyTegger

    Joined:
    Feb 15, 2015
    Posts:
    57
    I had to turn off all the colliders, then my framerate was up. Seems odd, that a single collider would cause that, but c'est la vie I suppose
     
  8. Unity_Wesley

    Unity_Wesley

    Unity Technologies

    Joined:
    Sep 17, 2015
    Posts:
    558
    There could be something wrong there, if you would like, you can file a bug report.