- Home /
Tree batching inside of terrain
Hey everybody,
After I got FPS drops in my current project I started investigating and found out the problem is draw calls because of the amount of trees I have standing around on my terrain.
When I place the trees manually outside of the terrain as individual game objects they are getting batched and my fps are just fine. But since it's rather annoying to place thousands of trees manually I'd like to use the terrain tools to paint them.
Is that possible while keeping the trees getting batched? Or does putting them into the terrain really only help if they're getting replaced by billboard versions?
My trees have less than 300 vertices, do not cast or receive shadows, I don't need wind or other fancy things.
Thanks in advance
I second this! Also trying to find a solution here...
As am I. This tree system is giving me so many problems it's all I work on lately.
Have you tested performance in a build? Stats figures take the scene view camera into account.
$$anonymous$$ight be some help here: http://forum.unity3d.com/threads/batching-trees-and-speed-up-rendering.138929/ If you have pro, make sure to mark terrain as static
Your answer
![](https://koobas.hobune.stream/wayback/20220613131858im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Cannot draw tree from blender to terrain in unity, Why? 2 Answers
Can I have 500,000+ trees? 3 Answers
Plant grass or tree with an image 0 Answers
Why does my water display itself above my trees? 1 Answer
Seasonal Terrain Trees From Script 1 Answer