Sunday, May 25, 2014

Collision is now optimized to avoid checking for entities that are obviously not in the same general region. The test contains a moving ball and about 1500 tiny rectangles to collide with. The naive algorithm can not run in real time while the optimized form works fairly well:

2 comments:

  1. Hi,
    this example (demo_collision) works pretty slow for me. Not like in the video. Why is that?

    ReplyDelete
  2. What kind of system did you run it on? I run this under Win8 on a Core i7. It should normally take a moment to start to prepare all the objects, but when it actually runs it should be smooth. Did you upgrade all the source code to the current revision?

    ReplyDelete