• 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 jasonm87 · Apr 09, 2015 at 04:36 AM · physicsphysics2dprofilerprofiling

Profiler mystery with Physics2d

Hi,

I am using the profiler and I see hundreds of calls under Physics2d.contactPreSolveAcquire

The objects are listed as N/A and their values are 0.

Under Physics2d.Simulate I get a 25% usage that gradually slows eveything down. It is also created by a N/A object.

How do I find the problem with no more info?

Thanks

Comment
Add comment · Show 1
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 MelvMay ♦♦ · Apr 09, 2015 at 09:00 AM 0
Share

That is called prior to each contact being solved by Box2D but it's doing minimal work there, just storing away the contact information. You should always try to keep the number of contacts being solved to a minimum, however a few hundred contacts should be acceptable depending on the device its being run on.

25% of the cycle-time taken solving hundreds of contacts per step isn't too bad. If everything really slows down then it'll probably be because the number of contacts grows much higher?

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

OnCollisionEnter,OnTriggerEnter making profiler spike 1 Answer

How using Profiler with ECS Games(Physics)? -1 Answers

how to anchor gui position to canvas using script (C#)? 1 Answer

How do I make a collision detector for the parent which effects the children? 1 Answer

Is it possible to profile compute shaders? 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges