x


Are big meshes all held in memory?

I'm debating whether I should create my game layout (which includes several rooms) as one big mesh or a bunch of individual meshes. The main issue, as I see it, is performance. Does Unity load only the parts of the object that it needs to render the screen or does it have to pull in the entire mesh with all of its textures including those that are not going to be rendered?

more ▼

asked May 08 '12 at 09:52 PM

karlhale gravatar image

karlhale
1 2 2 2

(comments are locked)
10|3000 characters needed characters left

3 answers: sort voted first

Hey Karl, You can use Occlusion Culling in unity 3.5 its the best way to make unity only render the mesh that is visible within your camera view ! also wot i recommend nd wot I do for the games that go for mobile platforms is that I combine all of my static meshses before exporting them into unity ! Hope that would help Cheers Ibrahim

more ▼

answered May 31 '12 at 10:46 AM

zipcofied gravatar image

zipcofied
0 2 2 2

(comments are locked)
10|3000 characters needed characters left

If it's a single mesh then it has no option but to load the entire thing. I would break your rooms up into individual sections, that way you can also provide LOD levels that load per room, should you need to optimize.

It's worth noting too that just because it isn't visible it doesn't mean the assets aren't being loaded into memory, so things like fog don't help so much in this respect.

more ▼

answered May 08 '12 at 10:18 PM

pudd1nG gravatar image

pudd1nG
394 1 3 7

(comments are locked)
10|3000 characters needed characters left

Excellent. As I thought.

Thanks for the quick response, Josh.

Any other recommendations for what I should be watching for in terms of memory/loaded asset management in Unity? I'm targeting mobile platforms so it's of particular concern to me.

more ▼

answered May 09 '12 at 06:14 PM

karlhale gravatar image

karlhale
1 2 2 2

Afaik unity got a limit of how big objects can be. But Im not sure now how big that was. (big in verts/tris, not MB or actual size)

May 09 '12 at 07:09 PM Ebil

It's around 64,000 verts

May 10 '12 at 05:11 AM pudd1nG
(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:

x1366
x664
x328

asked: May 08 '12 at 09:52 PM

Seen: 556 times

Last Updated: May 31 '12 at 10:46 AM