x


Unity is stuttering.. every 1.5 seconds about.

Unity is taking a short pause every 1.5 seconds or so. This happens in the Scene view and when running.

Any clue why this could be happening? When it isn't having the hiccups the scene is rendering 1000+ frames per second. I have tried disabling various scripts but nothing seems to affect it.

It may be unrelated but I did just get two newer higher resolution monitors (I run in dualscreen). Could it be a video memory issue?

more ▼

asked Jun 03 '11 at 03:52 PM

flaviusxvii gravatar image

flaviusxvii
3k 13 19 43

dual screen shouldnt affect it. I have dual. I doubt the monitors would affect it either. I would say it's either graphic card drivers or windows update. (I remember seing a notice in the editor saying if a certain windows hotfix is not installed it causes issues). Other than that, disable any realtime antivirus system protection, or systematically kill tasks in the task manager to see if killing something frees it up.

Jun 03 '11 at 04:28 PM taters

I run Windows 7, 64-bit dual monitor on two different machines. After running our project a few times, Unity will begin to stutter suddently, no matter what PC nor what graphiccard.

Oct 22 '11 at 06:56 PM BerggreenDK

Make that 3 different machines actually.

Oct 22 '11 at 06:56 PM BerggreenDK
(comments are locked)
10|3000 characters needed characters left

4 answers: sort voted first

Simple solution, but try restarting Unity. I've found after running it a few times in my scene which is quite involved at the moment, I have this stuttering of the frame rate and the audio.

The only way to fix it is to restart Unity.

more ▼

answered Jun 03 '11 at 06:34 PM

Meltdown gravatar image

Meltdown
5.6k 18 25 49

jup, I think the current version (if not every version) of Unity Editor has the famous "memoryleak" problem with certain resources.

I load a lot from webservers through the WWW class and I also instantiate a lot dynamically. I suspect these functions to have some sort of bad programming behind them inside the Unity Editor.

Oct 22 '11 at 06:54 PM BerggreenDK
(comments are locked)
10|3000 characters needed characters left

Just another note for people on this, Make sure you dont have any scripts printing/debug.... This can be another cause for lagging.

As in something that logs/prints on the update/ongui/fixedupdate

more ▼

answered Jun 03 '11 at 10:45 PM

Bradley DM gravatar image

Bradley DM
46 1

This is so true...

Debug.Log is sloooow.

Jun 04 '11 at 04:26 AM Tasarran

yup, and the OnGUI event is easy to setup for debugging info that needs realtime viewing. Another approach is to use the building DEBUGGER instead and examine the values in memory.

Oct 22 '11 at 08:02 PM BerggreenDK
(comments are locked)
10|3000 characters needed characters left

I recommend downloading and installing the latest video card drivers. I've seen this fix this exact problem with Quake 3.

more ▼

answered Jun 03 '11 at 05:19 PM

almo gravatar image

almo
1.7k 2 6 18

Hmm.. I've been using the same drivers with Unity for months without any problems. I might try this.

Jun 03 '11 at 07:57 PM flaviusxvii

Worth a try. Might not help, but it shouldn't hurt. :)

Jun 03 '11 at 07:59 PM almo

Unless the newest drivers are messed up and set your computer on fire!

http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=nvidia+drivers+overheat

Jun 03 '11 at 10:06 PM flaviusxvii

Did installing new drivers help anyone?

Jun 14 '11 at 06:16 PM Meltdown
(comments are locked)
10|3000 characters needed characters left

I have the same thing in version 3.3, it starts to stutter more often if I switch quickly between scripting and Unity. The complexity of the project doesn't seem to matter either. 3.4 couldn't come sooner!

more ▼

answered Jun 03 '11 at 08:28 PM

save gravatar image

save
8.2k 22 31 62

Assuming this is an issue they've identified and plan to resolve in version 3.4. Being a long-time computer user I don't automtaically assume newer releases of anything are better/stronger/faster. Time will tell.

Jun 03 '11 at 10:08 PM flaviusxvii

How do you mean you switch between 'scripting' and 'unity'. Do you mean from your script editor to unity and back? I'm using Visual Studio Pro 2010.

Jun 14 '11 at 06:16 PM Meltdown

@flaviusxvii Very true, the statement was meant to be general. :-)

@Meltdown Yeah exactly, Unity usually gets the hickups after about 30 minutes and it happens while switching between the script editor and Unity. I'm using Notepad++. As you've answered the only solution seem to be a restart.

Jun 16 '11 at 06:20 AM save

Yep, restarting. I've made it a habit to save/restart fairly frequently anyway, since the windowsLockFile screws with Dropbox.

Jun 16 '11 at 05:17 PM flaviusxvii
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3738
x718
x261
x177
x21

asked: Jun 03 '11 at 03:52 PM

Seen: 2197 times

Last Updated: Oct 22 '11 at 08:02 PM