title: Box2D static body collision performance issue
body: <p>I'm using JBox2d to perform collision detection in a game project I'm working on.
  I represent obstacles in the world with static bodies. Whenever a dynamic body (i.e. a game character) collides with one of these obstacles, there is a very noticeable drop in performance. Fps will drop from ~120 to ~5.  This seems to happen more frequently when the corners of the static body are collided with.</p>
  
  <p>When I set the body type of the world obstacles to be dynamic instead of static, with very high density(to prevent the body from moving when it is collided with), this issue disappears... This solution is not ideal for my situation however......</p>
  
  <p>Any ideas as to what could be causing this huge fps drop?</p>
  
  <p>Here's the code I use to create the static bodies:</p>
  
  <pre><code>BodyDef def = new BodyDef();
          def.type = BodyType.STATIC; // If this line is commented and the other     
                                 //commented lines are uncommented, the issue goes away.
          //def.type = BodyType.DYNAMIC;
          def.position.set(worldBounds.getCenterX(), worldBounds.getCenterY());
          Body staticBody = b2World.createBody(def);
  
          PolygonShape box = new PolygonShape();
          box.setAsBox(worldBounds.getWidth() * 0.5f, worldBounds.getHeight() * 0.5f);
  
          FixtureDef fixture = new FixtureDef();
          fixture.shape = box;
          fixture.friction = 0.3f;
          //fixture.density = 1000000000;
          staticBody.createFixture(fixture);
          //staticBody.setSleepingAllowed(true);
          //staticBody.setFixedRotation(true);
  </code></pre>
  
  <p>I've tried using a CircleShape instead of a PolygonShape, but that doesn't help anything.</p>
  
  <p>Thank you!</p>