- Home /
The question is answered, right answer was accepted
OnCollisionEnter,OnTriggerEnter making profiler spike
Ok, I am having a big performance trouble. I have attached my profiler data and script so that you guys can tell me what is the problem. Why is OnColliderEnter and OnTriggerEnter making spike. What can I do to reduce those spike. Please help fast. Thanks. alt text
Because you've not provided enough information, or shown any evidence that you've tried to help yourself...
What does Gm.SaveScore() do, for example? Have you tried commenting out each line in the TriggerEnter function to see if it makes a difference?
Yes, I have done that. Gm.SaveScore() saves score in PlayerPrefs. And I have done that but no change.
Enable deep profiler to show more info about it.
Okay, I enabled it as you said. And I found the problem. One of the plugins was responsible for it. Thanks for your answer.
Follow this Question
Related Questions
How do I make a collision detector for the parent which effects the children? 1 Answer
Set ContactFilter2d to not use child object's triggers. 2 Answers
Object bounces without colliding 1 Answer
Bug object is shaking in the same spot and object inside another 0 Answers
Profiler mystery with Physics2d 0 Answers