Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
0
Question by Pollygone · Sep 28, 2013 at 08:13 PM · collidertreescollidingmass place trees

Mass Placed tree Collision

In my scene when I mass place trees (Without Colliders) The game runs fine at 100 FPS. However when I add Colliders to the trees my FPS drops to about 25 FPS. Is there anyway solution to this? or is this just how it is? My computer can run high end games just fine (crisis 3 on high settings) oh, and i'm placing around 8000 trees since it is a forest level.

Thanks in advance

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Entairex1 · Sep 28, 2013 at 10:07 PM

It depends on what kind of collider you're using. If you're using a mesh collider, then that means it has to calculate a very precise collider that covers every branch and bump of the trees (probably eats memory).

An idea would be to use a box collider instead. Try creating one and tweaking it to only cover the stem of the tree, this should lower the requirements a lot.

If you're placing that many trees, it's important to keep it optimized, and depending on how thick the forest is, you wouldn't necessarily need a very high mesh render distance. Maybe increase the fog thickness to make the transitions less noticeable.

Comment
Add comment · Show 3 · 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 Pollygone · Sep 29, 2013 at 05:12 AM 0
Share

I currently am using a "Capsule Collider". I have tried using a box collider, but that does not work when you "mass place trees". I mean it works when I manually place the tree prefab down. When I "$$anonymous$$ass place trees" The box collider does not work anymore =s. $$anonymous$$aybe I should just use less trees maybe?

avatar image Entairex1 · Sep 29, 2013 at 03:38 PM 0
Share

hmm you could try and lower the density of trees at different areas, also did you try changing the render distance for trees?

By the way, how many polygons is 1 tree?

avatar image Pollygone · Sep 30, 2013 at 02:08 AM 0
Share

Each tree has about 2500 polygons. I know this isn't the problem though because I get around 80 FPS when the colliders are off. but still drops to about 20 - 25 FPS when I turn them on

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.

Follow this Question

Answers Answers and Comments

16 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

Related Questions

"Mass place trees" vs -place trees with brush- vs -my own script- 0 Answers

Lag with trees that use colliders? 0 Answers

Mass Placed Tree Collider 2 Answers

Null reference that isn't null 2 Answers

Problem with objects colliding and IsSleeping (C#) 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges