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
1
Question by DeveshPandey · Dec 08, 2012 at 11:00 AM · iosperformancemeshcollideripadsmoothly

Mesh Collider slow down the app

I have a simple straight road and put a mesh collider on it, and a car on this road. if I run it on iPad then it gives poor performance, app not running soomthly.
If I put box collider instead of mesh collider then its running smoothly and gives better performance on iPad.

How can I improve performance of app with the mesh collider, am I doing something wrong?

Your answers will be appriciable.
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
2

Answer by Lockstep · Dec 09, 2012 at 01:48 AM

Mesh colliders are the most expensive colliders possible. The more polygons your mesh has the worse it is. The performance is also very critical for mobile devices. I guess the road just has too many polygons to work as collider on iPad.

In generall you should only use mesh colliders when you have to. In many cases it is sufficient to approximate the shape of your gameObject with a capsule/cube/sphere.

If you have to use a mesh collider is always worth considering to make an additional mesh. This new mesh has roughly the same shape as the mesh on the gameObject but is less detailed. That way you use less performace on the collisions but maintain the same behaviour compared to using the original mesh.

All in all I'd suggest to lay box colliders over the road like you did before.

Comment
Add comment · Show 2 · 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 DeveshPandey · Dec 10, 2012 at 01:27 PM 0
Share

@ Lockstep : thanks for your reply. but we can't put a box collider on every roads if road has some slope or zig-zag or on mountains etc, then what can I do to improve the performance on iPad.

avatar image Lockstep · Dec 11, 2012 at 04:35 PM 1
Share

The only thing else that comes to my $$anonymous$$d is to use a less complex mesh for the collider. Like I tried to descriped. Open the road mesh with your 3D model program and remove as many verts and edges as possible without changing the shape too much. Save it under a new name i.e. roadmesh_collider. Then use this mesh for the collider ins$$anonymous$$d of the visible road mesh.

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

10 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

Related Questions

Game Lagging in iOS 0 Answers

Profiler does not show objects when hooked to an iPad 1 Answer

Android Tablet vs iOS iPad performance difference 0 Answers

Performance woe - full log given 1 Answer

Game Slow Performance on iOS 11 iPhone 6 0 Answers


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