• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by Sanyika66 · Jun 17, 2017 at 04:49 PM · terrainperformance optimizationbatchingdetails

Lots of terrain details makes my batch count high. Ideas?

Okay Im making simple games, currently I have a terrain, about 50-100 static objs and 20~ moving ones. 10 lights in total. lightmaps doesnt matter(i swear). Batches are about 4-8k in total. Changes when looking in unpopulated regions. Then after years of trying and s*it I disabled draqing details. It worked. 1200~ batch maximum, my "NASA Computer" graphics quality is running on 25 fps on my potato 2x2.1Ghz athlon! LOL! Okay, I still want my details distance back to 100, which makes the batch count high as a mountain. I searched for batching in google, unity.. I save most of my things by it but the terrain just ignores it completely. Im using the Standard Assets/Environment/Billboards/Grass01 or whatever texture for my grass. What should I change? Thanks.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ModLunar · Feb 06, 2018 at 09:10 PM 0
Share

Exactly, I was wondering why this was happening to me too. I haven't found a solution yet but I'll let you know if I do. I don't want to overdo it on the grass in my particular scene, and yet my batch count skyrocketed just after I put the grass on the terrain for me.

1 Reply

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by ModLunar · Feb 08, 2018 at 03:38 AM

Okay I'm kind of in awe -- I just found a setting in the Terrain settings that has a drastic effect on the draw call count. Now I'm just wondering why they had such a seemingly terrible default value for batching terrain details!

The setting is "Detail Resolution Per Patch", you can see its description in the manual here. It says that it's the "length/width of the square of patches renderered with a single draw call." By default for me, it was set to 8. I increased the heck out of that to something like 64 or 128 and my draw calls in the scene I was working in reduced from around 750 to around 245 instantly!

Surely there's more to this than that, I'll need to look more into gpu instancing and the implications of things like this. But hopefully this helps your situation, definitely a very quick fix!

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Sanyika66 · Feb 08, 2018 at 10:25 AM 0
Share

Thanks ModLunar,

I will consider using it in my projects.

Thanks again, Alex

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

84 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity terrain 1 Answer

Static batching and showing/hiding game objects 0 Answers

Make a simple tree 1 Answer

Baking tiled terrains VS baking big terrains 0 Answers

How Do I Fix My Grass? 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges