x


How efficient is Terrain.SampleHeight?

Hi,

I want to use the terrain engine for a mobile game and I'm wondering how efficient it is. I also want to know how efficient Terrain.SampleHeight is? Can I use it on a per update basis? Does it use ray casts or is the data already stored?

Also, on a side note, will reducing the poly-count of the terrain increase performance, and if so is there a way to adjust the poly-count of the terrain?

Thanks!

more ▼

asked Jun 28 '12 at 08:29 PM

Kunikita gravatar image

Kunikita
16 1 2 3

You can use the profiler if you have Pro, or just run benchmarks if you don't.

Jun 28 '12 at 09:06 PM Eric5h5

You should definitely benchmark it as Eric says to be sure. Ancedotaly I can tell you I run them every frame for camera scripts and the performance has never been an issue.

Jun 28 '12 at 09:09 PM whydoidoit
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Ok. Thanks a lot guys :)

more ▼

answered Jun 29 '12 at 08:16 AM

Kunikita gravatar image

Kunikita
16 1 2 3

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

x1476
x662
x413

asked: Jun 28 '12 at 08:29 PM

Seen: 429 times

Last Updated: Jun 29 '12 at 08:16 AM