x


What's the best way to optimise thousands of instances of the same mesh?

Hey all, I have a project which requires as many meshes (only planes or cubes) to be on screen at the same time as possible.

I have tried generating one model using the planes as sub-meshes with some degree of success and was wondering if anyone has any tips as to how I might optimise it further...

I've heard if graphics cards with built-in instancing and also thought about using a single mesh for the whole and storing which verts belog to what part of the model... any thoughts?

more ▼

asked Jan 18 '10 at 02:27 PM

Dan T gravatar image

Dan T
63 5 5 7

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

2 answers: sort voted first

if your meshes don't have code you can use Graphics.DrawMesh. if your objects have code attached and you need more control on them, planes are not heavy and you can use many of them. generate as low poly meshes as possible and use low resolution textures as possible.

more ▼

answered Jan 18 '10 at 02:37 PM

Ashkan_gc gravatar image

Ashkan_gc
9.3k 33 56 120

What if you only need Graphics.DrawMesh with collision, is there a way to not load the usual object heaviness?

Dec 18 '11 at 05:53 AM ina
(comments are locked)
10|3000 characters needed characters left

show about 20 and put a message at the bottom of the screen saying that there are heaps but there invisible

more ▼

answered Dec 18 '11 at 07:22 AM

sam32x gravatar image

sam32x
178 42 57 63

(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:

x1403
x678
x584
x492
x428

asked: Jan 18 '10 at 02:27 PM

Seen: 2034 times

Last Updated: Dec 18 '11 at 07:22 AM