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 cncguy · Mar 03, 2010 at 08:11 AM · physicsoptimizationprofiler

Physics.simulate chews CPU but not using physics at all - Am I?

I have been profiling my application with the profiler. I am using Time.timeScale to control the speed of my application. As I increase the speed by adjusting the time scale, Physics.simulate chews up considerable CPU even though I am not simulating any physics. There are up to 300 calls. using almost as much CPU as Camera.Render!! Anyone have any clues?

Thanks in advance Tom

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 runevision ♦♦ · Mar 03, 2010 at 09:56 AM 1
Share

Can you confirm that you have not a single Collider, Rigidbody, or CharacterController in your scene at all? If you have any of those, you are using the Physics engine.

avatar image cncguy · Mar 05, 2010 at 09:05 AM 0
Share

As far as I know yes. While running in the editor I have gone through all the active objects and I cannot find any of the above mentioned components.

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by cncguy · Jul 05, 2010 at 10:22 PM

I can't remember exactly how I fixed this. I think I found something obscure that I was creating dynamically through scripting that had a physics object on it. Once I removed it the physics calls were gone but it didn't turn out to have any appreciable effect on performance.

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
avatar image
3

Answer by Tetrad · Jul 06, 2010 at 12:32 AM

If you want to print out a list of all the components your game objects are using at run time, AngryAnt wrote a decent editor script that collates all the component types and lists them out for you.

http://eej.dk/angryant/general/tipsandtricks/where-did-that-component-go/

So if in the future you need to find something of a particular type, you can use that.

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 cncguy · Jul 06, 2010 at 02:29 AM 0
Share

Hi thanks for that.

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

No one has followed this question yet.

Related Questions

Unity Profiler - Physics optimization (FPS drop) 0 Answers

Physics.Simulate taking a long time 1 Answer

Unity deep profiling is drunk, I think 1 Answer

Profiler shows Object.ElementAddr_3_8() called over a million times. What is it? How do I reduce this? 1 Answer

EditorOverhead High CPU Usage in Unity Profiler 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