Hello,
I’ve got a weird problem here… not quite a very important problem, but an annoying one nevertheless.
Every now and then, Unity will stutter when playing the project… it’s not a steady framerate drop, it’s more like every 100th frame taking 10x longer to finish than the others, which leads to a really annoying stuttering…
My immediate first thought was that something in my project was causing it… maybe some script is working with really small numbers, and causing slowdowns due to denormal values… or some Unity method is far heavier than I thought it to be…
But, having no mind to go through almost 40000 lines of code, I decided to try the easy things first, and restarted Unity.
Restarting Unity seems to fix the problem. And it’s more apparent that it’s not the game from the fact that switching to other scenes seems to have no effect on the stutters… my main scene, with it’'s procedural terrain and complicated physics setup, stutters just as bad as an auxiliary scene that is only used to unit-test some game components… So it’s NOT the game.
Anyhow, I wasn’t having any such trouble a few months ago when I started working with Unity… so I wonder what could be causing it…
Could it be version 3.3? The project started on 3.1, and we upgraded when the new versions came out.
Or could it be some external service, like Dropbox, which is syncing the project across and keeping it backed up. (I’ve tried cutting out dropbox, to see if it would make a difference, but it didn’t produce any consistent effect, and it’s far too necessary to be just cutoff)
Also, most times, the stuttering can be fixed by restarting Unity, or having it recompile a script… So I’m pretty certain at this point that the problem isn’t the game…
Has anyone had this problem too? Any thoughts about what could be causing it?
Here’s a brief description of my setup (hardware and programs running in the background), if it helps:
Rig: Intel Core i7 920, 6GB DDR3 ram, Geforce GTX460, plenty of disk space left.
Setup: Win 7 x64, Unity 3.3, Visual Studio 2010, DropBox, Teamviewer, Skype
Thanks in advance for any help
Cheers