x


Cross reference crashes Unity (was: Compilation and launch of project takes long time and much RAM)

Hello,

Recently I've noticed that compiling and launching of my project inside Unity editor takes much more time than couple days ago. Much more. About 30 seconds just for launch instead of 2 seconds. I've examined previous versions of the project and found that this delay appears from nowhere because of small changes in scripts. Nothing else have changed. And nothing special in this lines. Just game logic. And I also see in task manager that in "good" version game takes 100 Mb of RAM when launching. In "bad" version it takes 1Gb (!) (and falls down to "good" 100 Mb when launched). Just because of 30-40 more lines of code in game logic...

I've tried complete reimport of assets. Nothing happened.

What could it be? Any know bugs in Unity which can do it? Or something special?

UPD: I've discovered it more and found the problem. It's a cross reference in classes. When Class1 have a variable of type Class2. And Class2 a variable of type Class1.

The project to test it here: http://forum.unity3d.com/viewtopic.php?p=389727#389727

So I guess it's bug. And the bad one.

Are there already any methods to solve it?

IMPORTANT UPDADE:

Couple of days ago I started to port my project to the iPhone and it often suddenly crashes (in general I couldn't launch it while it works on pure Mac).

I've found that this bug totally crashes Unity iPhone 1.7. More over in PC/Mac there could be one or two cross referenced class variables and problems start with three or more of them. In Unity iPhone it's unable to have even one.

Hope experts will say something about it :) Will it be fixed in Unity 3, or I should start rewriting code?

more ▼

asked Sep 03 '10 at 05:59 PM

Santa gravatar image

Santa
477 20 24 37

Hm, just a few ideas here. Do you have the profiler window open somewhere? Even if it's a background tab, it will still be activated. Did you change some texture settings? Did you change the Quality settings? You can try to set the Quality settings for the Editor to "Fastest". Does this change anything?

Sep 03 '10 at 07:24 PM Wolfram

See the update for the post. I fink I've found the reason but not the answer...

Sep 03 '10 at 07:55 PM Santa
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
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:

x660
x506
x470
x262
x51

asked: Sep 03 '10 at 05:59 PM

Seen: 918 times

Last Updated: Sep 14 '10 at 05:56 PM