x


whats better mesh or atlas

ok so say i have 2 square walls each made out of four cubes. and both use different textures. however both textures are made for uv stretching so basically nice blending between each image.

is it better to stretch one of the four cubes on one wall, delete the other 3 and then make the uv larger to match.

or would it be better to combine the four walls into one and then put the textures into an atlas for less draw calls but more triangles and verts

so draw calls or triangles and verts?

more ▼

asked Jun 01 '12 at 01:53 AM

reptilebeats gravatar image

reptilebeats
1.2k 57 108 137

Just test the two.

Jun 01 '12 at 08:25 AM Fattie
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

As a general rule of thumb, increased draw calls will be more expensive than increased geometry.

So it's generally cheaper to render more at once rather than less multiple times.

This is because when ever you make a "draw", it needs to push that information down to the GPU and then proceed again. This briefly stalls the operation, resulting in slower speed.

However! It's only a general rule of thumb. Given that Unity is a reasonably advanced engine, it's quite possible that even though your code looks like it is making multiple draws, those draws may (may!) result in fewer draws than your code would imply.

The only way to know for sure is to test and see what kind of results you get, but as a general rule of thumb you are much better off drawing more at once rather than drawing less more often: ergo put it into an atlas and increase the amount of geometry will probably be cheaper.

more ▼

answered Jun 01 '12 at 04:05 AM

tomka gravatar image

tomka
283 3 6 9

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

x111
x16
x10

asked: Jun 01 '12 at 01:53 AM

Seen: 422 times

Last Updated: Jun 01 '12 at 08:25 AM