• 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 /
  • Help Room /
avatar image
2
Question by AfroDieter · Oct 14, 2016 at 06:50 AM · cameraterrainperformancerender

Unity camera render performance with many terrains

Hi, I am currently building a tile based game where the tiles are represented by unity terrain objects. Unfortunately the performace goes down linear with the amount of tiles I generate. I identified the process Camera.Render to be responsible for my bad performance but honestly this is where my knowledge stops. I already activated Occlusion Culling on my cam so it shouldnt render objects which arent in sight right? Still the performance is equally bad if I look in the distance or just on a few tiles right on the ground. If I disable the camera my game runs just fine which in my opinion shows clearly that it is not because of other performance problems. I think that for some reason all my obects are rendered all the time, even if they are clearly not in sight. Please help :/

EDIT: I just found that of my 99,5% rendering 99,2% go into "Culling" of which 83,9% go into something called "PrepareSceneCullingParameters". The 2 subprocesses of that however show no significant workload. So obviously something culling based is going on but I dont know how to optimize this.

Comment
Add comment · Show 4
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 Zodiarc · Oct 14, 2016 at 07:17 AM 0
Share

Why are you using terrains as tiles and not simple planes?

avatar image AfroDieter Zodiarc · Oct 14, 2016 at 07:55 AM 0
Share

Because the terrains are not flat. I designed mountains and coasts and stuff. Also you can place trees on there very easily.

avatar image Zodiarc AfroDieter · Oct 14, 2016 at 01:23 PM 0
Share

I still don't see the purpose of multiple terrains as tiles. Will you stick them together by random or are those only tiles for a turn based game where one tile equals one movement unit?

Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by DeathRace26 · Aug 25, 2019 at 10:58 AM

Bump, there is so few threads and still no solution fixing this. Im desperate for help

Comment
Add comment · 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
0

Answer by AfroDieter · Aug 25, 2019 at 10:07 PM

I am way beyond this now. I think terrains are just something that is supposed to be used for games which feature 1 of them loaded at the same time. There is definetly no process optimizing for multiple terrains and I do not think there ever will be. Sry mate.

If u wanna use customly shaped tiles I recommend building them as 3D models and using these models in your game.

Comment
Add comment · 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

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

115 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 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

How does many terrains on scene affect performance? 1 Answer

Use CameraClearFlags to lower the visual frame-rate? 0 Answers

Best way to make a huge terrain for flight simulator? 1 Answer

Does the Terrain's width and lenght properties affect performance? 0 Answers

Camera.Render() not working in edit/play mode 0 Answers

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