Performance Issue While Near One Specific Object
Hi. I am relatively new at unity, only been using it for about a 2 weeks. I am creating a simulator in VR using Oculus Link. Everything had been going swell until today. Today I added a door I made on blender, gave it a trigger and animated it, but everytime I approached to door, my frame rate dropped to less than 1 frame a second. So I removed it and added what is essentially a hole in the wall with a door on either side. As of right now, only one side as a door, a trigger, and the door is animated. The second I get near the door, not even close to the actual trigger yet, the performance again plummets. Using the profiler, it tells me scripts are causing the slowdown, and points to scripts that are within the OVRPlayerController. But, when I am on the other side of this hole, or anywhere else within my scene not near it, the game runs as expected. The Profiler says tells me this: CPU: 6,472.39 ms, PlayerLoop:2649.45ms, Update.ScriptRunBehaviourUpdate: 2642.02ms, BehaviourUpdate: 2642.01ms, and OVRCameraRig.Update: 2641.75ms. I am using Oculus' playercontroller, have about 10 other triggers within the scene, and the scene is fairly large. Please, if there are any settings or code I can tweak, please let me know. I can also give more information if need be. Any help is immensely appreciated.
Edit: The "hole in the wall with a door on either side" is not replacing the door, it's an entirely different object within the game. I apologize if I am not explaining it well.
Your answer
Follow this Question
Related Questions
Continuing a Dialogue 0 Answers
AudioSource dissappears in variable window on Play 2 Answers
OnTriggerEnter vs distance check in Update 1 Answer
OnTriggerExit does not work 0 Answers
Collider fires consistently, but Trigger does not? 0 Answers