Quantcast
Channel: Answers for "Stats greatly fluctuating. Do not know what is causing it."
Viewing all articles
Browse latest Browse all 4

Answer by Bunny83

$
0
0
I suggest you do the following steps: - If you have Unity pro, use the profiler to see what's going on. - If not follow these steps: - Backup your project - Run the game in the editor and collapse all gameobjects in the hierarchy. - Start deleting the gameobjects one after another - See when it stops fluctuation. - Restart the game and only delete the object you deleted last - If the problem is gone, restart again, expand that object and delete it's childs, one after another. - If it wasn't solved by just deleting the last deleted top object, try to find out which top gameobjects has to be deleted together to solve the problem - If you get a NullReference exception after deleting an object, it's the best time to insert some null-checks into those scripts ^^. - Once you have isolated the problem think about what scripts are attached to those object(s) and it's childs. What do they do / change each frame. What other components are involved? Particlesystems, Rigidbodies, GUI, Renderer Additionally you might want to press the pause button in the editor and step through your game (the button on the left of the pause button). Do you see any pattern? Switching each frame? About every X frames?

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images