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
0
Question by Jaywalker · Oct 01, 2011 at 12:34 PM · physicsperformanceprofiler

Profile physics.simulate

Hey!

I'm having a strange performance problem with Physics.simulate, Normally I would just delete stuff from my scene during play until the bottleneck becomes appearent, but in this case even if i delete everything Physics.simulate stays up there...

It should be something I'm doing in script as a new empty scene doesn't have it, i don't know what i can possibly activate that could keep hammering the performace after deleting every object in the scene...

Anyone know what I could be missing? Or maybe a good way to find out what exactly is using physics.simulate? deep profiling shows nothing extra..

Thanks!

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
1
Best Answer

Answer by jonas-echterhoff · Oct 01, 2011 at 02:41 PM

When you delete everything from the scene, Physics.Simulate is still taking a lot of time? Maybe you have some script left which moves a static collider? That is always a big performance hit, and will show in the profiler as "Static Collider.Move", but the actual performance hit is in Physics.Simulate.

If you're on windows, you can use NVidia's profiling tools for more detailed profiling into PhysX.

Comment
Add comment · Show 1 · 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 Jaywalker · Oct 01, 2011 at 03:01 PM 0
Share

Hey Thanks for the answer! I actually deleted everything, nothing left in the hierarchy... So thats strange. But I just "solved" my problem. $$anonymous$$y graphics manager script was disabled and so it left the fixed timestep settings on PC values giving a lot of overhead on iOS. Still strange to me that Physics.simulate costs 0.35ms on my machine when I deleted everything in the scene... and 0 to 0.04 in a clean scene..

I'll definitely look into the profiling tools though, sound quite usefull!

thanks again!

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Should rigidbodies be destroyed as they fall out of stage? 1 Answer

Profiling mysterious "Phase Core: Trigger Interaction Work" 1 Answer

Moving Colliders giving me Physics.simulate spikes in Profiler 2 Answers

Spikes with Physics.Simulate() in empty scene? 0 Answers

Active rigidbodies and number of Contacts 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