title: Box2d raycast vs AABB query performance
body: <p>I'm currently trying to improve performance of a game that makes use of box2d physics (actually box2dlights).</p>
  
  <p>I have a method that makes several (let's say about 16 to 64) raycasts within an known area. I wonder if it would be a good idea to make an AABB query of that area in a first step to check if there is something the raycasts could report. If not, I can skip the raycasts. But if the AABB query finds something I have to make the raycasts and the query was redundant. How fast is an AABB query comparing to a raycast (especially in box2d)? Is it a good idea to make an often superfluous AABB query if I can skip some raycasts in turn?</p>