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. Dismiss Notice

CPU Issue

Discussion in 'Editor & General Support' started by Ampharel, Aug 10, 2014.

  1. Ampharel

    Ampharel

    Joined:
    Oct 9, 2012
    Posts:
    27
  2. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
    Could you run it again in deep mode, as this might highlight the problem if it is in the C# code.

    But the code is in the OVRPlayerController.Update() method it looks like the problem is in the Oculus Rift code base, or at least until you run it in deep mode then that's what it looks like.
     
  3. Ampharel

    Ampharel

    Joined:
    Oct 9, 2012
    Posts:
    27
    If you read the post I made on the OR Forums, I already narrowed it down to the CharacterController.update function, inside the OVRPlayerCntroller. Problem is that this is compiled code.
     
  4. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
    Then you should contact Oculus and raise a bug report with them.
     
  5. Ampharel

    Ampharel

    Joined:
    Oct 9, 2012
    Posts:
    27
    Its a thing in Unity:

    http://docs.unity3d.com/ScriptReference/CharacterController.html
    Component -> Physics -> CharacterController.

    The Oculus SDK Uses this, but when the CharacterController.Move function gets called the CPU ms spikes up. The CharacterController class is a compiled Unity Class.
     
  6. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
    In that case raise a bug report with Unity -> Help - > Report Bug.

    You could also check that you're using the latest version, and also check the patch updates to see if this is a know bug that has been fixed in a more recent patch.
     
  7. Ampharel

    Ampharel

    Joined:
    Oct 9, 2012
    Posts:
    27
    But so this is definitely a bug and not something I can fix myself? Other then patching because I am indeed running on 4.3.1, but I dont wanna break the project by updating.
     
  8. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
    Possibly, you could share the project or ideally a simplified version of it that has the bug with another Oculus Rift Unity developer to get a second opinion.

    You can upgrade to a separate folder or machine and copy the project to a new location or back it up before testing it in a newer version of Unity (just in case it breaks).
     
  9. Ampharel

    Ampharel

    Joined:
    Oct 9, 2012
    Posts:
    27
    Im gonna see what happens if I replace OVRPlayerController with the normal 1st person. The both have the character controller so it should have the same problem.

    To rule out OVR

    Edit:
    Confirmed with fpc
     
    Last edited: Aug 10, 2014