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 Avorathol · Nov 07, 2011 at 10:37 PM · androidcollisionphysicsiphonejoint

Massive framerate fall with Character Joint

Hello everyone,

I have a problem happening mainly on android smartphone, but I think it's more because of the performance.

Here is the thing. I have a rope made of several nodes - containing Character Joint, Rigid Body and Collider - connected to 2 points, one fixed and the other movable. When the rope is too tight, I add nodes, when it's too slack, I remove. The scene is in 2D, subject to Gravity.

In default case, without any collision there's no problem and the rope respond correctly to any movement of the second point. When this point collide with an obstacle, and that I readjust its position to stay on the edge, the rope work fine too. But if I try to make this point slide against the obstacle, really often the framerate is totally out of control (in the order of 1 to 2 second by frame).

After many tests and profiling, I can say it's because of the automatic readjustment of Character Joints, and happening mainly when I stretch the rope, but I can't find why, neither correct it. Some frame it works, and at a moment, the Physics.Simulate take between 500ms to 2000ms, and then never go back to a normal value, whatever I do. And I can't see further what's happening in this Physics.Simulate and in Character Joints readjustment.

If I deactivate Joints, there's no problem (but I haven't a rope behavior anymore). If I don't make this slide movement, there's no problem. But each point movement is just a manually affectation, and only this slide one fail, even without any calculation. I even tried to change time step or solver iteration count values, without any success.

I think it's a problem in Character Joints readjustment, maybe with Colliders. This problem is obvious on ARMv6 (provoking the game been totally unplayable), on ARMv7 there is a visible framerate fall (the game still remains playable), but of course it's undetectable on PC.

Does anyone have an idea of what could be the problem here, how I can found it, or of course how to solve it ?

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

0 Replies

· Add your reply
  • Sort: 

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

2 People are following this question.

avatar image avatar image

Related Questions

Efficient collision detection for a runner game 1 Answer

How to solve the problem that the constraint is too elastic 0 Answers

Keeping balls that stick together together 1 Answer

Strange collision problem with block and terrain 1 Answer

how to have a correct collision on wheel collider 3 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