x


How to reduce draw calls on dynamic trees?

Here is my camera and terrain settings: Camera-->

Near clip: 0.3 Far Clip: 800

Terrain-->

3000x3000 Resolution Pixel Error: 200 Detail Distance: 20 Detail Density: 1 Tree Distance: 500 Billboard Start: 300 Fade Length: 5 Max Mesh Trees: 200

In this situation my draw calls are about 1.9k, and i tried to off everything, no big change but when i disable trees suddenly it drops to 290 draw calls. What is the best way to have trees without so much of performance sacrifice? Thanks a lot.

more ▼

asked Dec 26 '10 at 05:35 PM

Kourosh gravatar image

Kourosh
1.5k 48 53 65

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

1 answer: sort voted first

Make billboard start distance much lower, because in billboard mode a bunch of trees are drawn as single drawcall; in tree-mode each tree is rendered separately.

more ▼

answered Dec 26 '10 at 06:36 PM

Paulius Liekis gravatar image

Paulius Liekis
7.3k 16 24 47

Hi Paulius, Ok,then how about the feelings of the game, cause I have a stormy scene which really requires wind animation and if I lower the billboard distance then they'll become static. How would you go for that issue? thanks

Dec 28 '10 at 06:33 AM Kourosh

Well, I think you could write your own billboard shader, or alternatively make sacrifices - no wind or better performance.

Dec 28 '10 at 09:10 AM Paulius Liekis
(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:

x677
x235
x114

asked: Dec 26 '10 at 05:35 PM

Seen: 1611 times

Last Updated: Dec 26 '10 at 05:35 PM