- Home /
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!
You can use the profiler if you have Pro, or just run benchmarks if you don't.
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.
Your answer

Follow this Question
Related Questions
SketchUp Sandbox vs. Unity Terrain 2 Answers
Shader with blend and mobile performance 0 Answers
big terrain performance && mobile 1 Answer
Unity3.4 Mobile Terrain Lag 1 Answer
Collision causing performance to drop 0 Answers