Random freezes during the game
I am making a simple 2d space shooter game (like in oficial tutorials), objects(planets, scores, enemies) moving from up to down, each of them has collider2D, rigidbody2D and c# script that moves them. To move objects I use transform.translate(), rigidbody isKinematic is set to true. All collider is set to isTrigger.
During the game sometimes appeares huge nasty freezes, about 1-1.5 secs. In profiler there are no any spikes or high ms. I have noticed in Xcode, when freeze happens cpu consumtion falls to 10-20%.
I just don't know where to look. Interesting that freezes occures only 1 or 2 times in game session and not at the same time.
Hi, fps is always 60, using Application.TargetFrameRate=60;
Your answer
Follow this Question
Related Questions
i am making a pong game and it works fine till i reset the game 1 Answer
How can I make something move without floating after I release the move key? 2 Answers
NullReferenceException: Object reference not set to an instance of an object, again 2 Answers
Is there any way to trigger a popUp UI when a player steps in a specific set of tiles? 0 Answers