Search Unity

  1. Unity 2019.4 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  3. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

45fps in almost empty scene and other perfomance issues

Discussion in 'AR/VR (XR) Discussion' started by Stacklucker, May 26, 2020.

  1. Stacklucker

    Stacklucker

    Joined:
    Jan 23, 2015
    Posts:
    25
    Unity 2019.3.13f1, standard render pipeline.

    For weeks now I've been having terrible perfomance in when running VR in the Unity editor. This issues don't persist when I am running a build version of the game. I have a tough stomach so I've been ignoring the issues developing for a while but its coming to a point where it is effecting gameplay and I would like to understand why my performance in the editor is so bad and how I can fix it.

    I remember a time (Feb 2020) where I was constantly hitting between 100-200fps using OVRManager. I don't know what happened but I am left with about 45fps nowadays with occasional spikes all the way down to 15fps. The EditorLoop is only adding about 3.5ms according to my profiler, so that's not the main issue.

    What is eating up all the resources are
    1.EarlyUpdate.XRUpdate
    2.OVRManager.Update()
    3.OVRManager.FixedUpdate()
    and somtimes OVRManager.LateUpdate()

    The PlayerLoop in the Profiler is because of that always sitting above 85% Total usage, with 25ms of CPU time.

    Am I missing something here or why is my perfomance so bad?


    upload_2020-5-26_21-35-50.png

    The occasional hiccups you are seeing are caused by the EditorLoop.

    By the way, disabling the OVRManager in the Hierarchy will give my fps of >100 but obviously OVRInput etc are not being called anymore.

    Any help would be much appreciated.
     
    curtispelissier likes this.
  2. Stacklucker

    Stacklucker

    Joined:
    Jan 23, 2015
    Posts:
    25
    Update: The culprit was OVRPlugin it seems. Luckily it is fixed with the new OVRIntegration 17.0.

    Edit: Problems are back with Unity 2019.3.15f1
     
    Last edited: May 30, 2020
  3. Autarkis

    Autarkis

    Joined:
    Oct 10, 2011
    Posts:
    290
    Hey @Stacklucker , have you found a solution for this? Also on 2019.3, seeing the same issues you wrote about.
    Oculus Runtime 17.0.
     
unityunity