Announcement

Collapse
No announcement yet.

Box2D performance

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Box2D performance

    Hello,

    im experiencing this weird drop of FPS, in a Scene with just 60 CircleCollider2D. Until 50 it runs fine, but when I reach 60-65 the FPS drops at a level that the game seems stuck, even on recent smartphones.

    I dont think that nowadays we cant simulate 60 circles on a smartphone. Do you have any idea? Is it normal?

    I have already tried this but nothing improve:
    PhysicsManager.Simulation2D.PositionIterations = 2; // default 3
    PhysicsManager.Simulation2D.VelocityIterations = 4; // default 8

    thanks

  • #2
    Hello,

    Reducing the number of iterations should improve performance although you will also have lower accuracy.
    Could you describe a little more what you are doing? When playing for example with the scale, entities are destroyed and built again, etc.
    On the other hand, check that there is no behavior making validations or changes constantly as well as the subscription to the collision events.

    Regards.

    Comment

    Working...
    X