CPU Issue
- 0 replies
- 946 views
Ok so I've got kind of a strange problem.
I've got a 3D model in my game, and a OVR Player Controller. That's all thats in the scene.
When I run the game and walk around, when I come to a certain point in my map my CPU will spike up to 1500ms.
Looking into the Profiler this is caused by the OVRPlayerController class.
Do you have any idea what could cause this?
(It's when I get close to 1 certain point in the map.)
Edit:
It seems to be caused by this:
From here on out its compiled code so I have no idea... Also it seems like this is CharacterController.Move, so would this be a problem in the UnityEngine?
Unity Profiler.png
Made linkthrough post to Unity forums: http://forum.unity3d.com/threads/cpu-issue.261541/
I've got a 3D model in my game, and a OVR Player Controller. That's all thats in the scene.
When I run the game and walk around, when I come to a certain point in my map my CPU will spike up to 1500ms.
Looking into the Profiler this is caused by the OVRPlayerController class.
Do you have any idea what could cause this?
(It's when I get close to 1 certain point in the map.)
Edit:
It seems to be caused by this:
Profiler.BeginSample("OVRPC - Controller.Move");
// Move contoller
Controller.Move(moveDirection);
Profiler.EndSample();
From here on out its compiled code so I have no idea... Also it seems like this is CharacterController.Move, so would this be a problem in the UnityEngine?
Unity Profiler.png
Made linkthrough post to Unity forums: http://forum.unity3d.com/threads/cpu-issue.261541/
