Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
2
Question by Arshia001 · Aug 10, 2011 at 07:53 PM · sleepsoftbody

How do I create a softbody that's relaxed by default?

2.In my soccer scene, there are a total of 8 softbodies (4 in each of the goals, for different parts of the net) with something like 400 vertices alltogether.

When I start the game, the framerate drops to something like 1 or 2 fps for a couple of seconds, during which times the softbodies are dropping to their idle positions. I think that's because after that time the rigidbodies go to sleep, and are deactivated for the time being, which restores the framerate to about 500 fps. This happens only when I put my laptop in power-saving mode, which essentially disables any and all GPU computing.

Are softbodies really this CPU-intensive? If so, how do I work around this? after all, only 1 or 2 of the softbodies will active at later times, and that doesn't seem to cause any problems. I'm guessing that if there's any way to mark the rigidbodies as sleeping on start-up, the problem can be solved

Comment
Add comment · Show 2
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 Jason B · Aug 10, 2011 at 08:04 PM 0
Share

The reason they run so poorly is because the Unity $$anonymous$$m has paid little $$anonymous$$d to the needs of PC developers; there is no multi-core support for the Unity engine, but more importantly, there is no GPU PhysX support (which would give us insanely fast PhysX simulations). As a result, cloth physics are almost entirely unusable in any serious project. The best you can do right now is vote this up as a serious issue, as in this respect, Unity isn't even attempting to be competitive, and that is truly a shame.

http://feedback.unity3d.com/forums/15792-unity/suggestions/2069453-gpu-physx-support

avatar image Arshia001 · Aug 11, 2011 at 11:29 AM 1
Share

Unity is such a great tool, and at the same time, small problems such as this make it very unusable for any large scale project... such a shame! Just out of curiousity, does this actually mean that the PS3 version runs on just one core as well? That'd be totally terrible!

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by roamcel · Aug 11, 2011 at 12:10 PM

This -MIGHT- solve your problem:

http://www.unifycommunity.com/wiki/index.php?title=TransformSaver

I have not tested it in your situation, but basically if you deliver the object transforms in their sleep positions, the engine should not hog cpu cycles.

Alternatively, you can access the project's physics manager and tweak the sleep times and such to make physics less cpu-intensive.

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.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

how to detect collisions between objects if they're sleeping 1 Answer

Effects of blocking the main thread in Unity 1 Answer

Can't use Rigidbody.Sleep() because I need to reference an object? 0 Answers

Create a Softbody in a 2D game 0 Answers

Wakeup Rigidbody Physics on pulling the floor down 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