My Game Physics Demo, and speed questions

Started by
0 comments, last by Hardwire 16 years ago
I've posted a new version of my game physics library. You can view it in action on YouTube here:
">
Or download it from my website and play around with it yourself: http://inlovewithGod.com/physics.php It's a lot more stable and faster than my first version. Speed question: The demo has a rope bridge. If I pile up more than 30 squares on the bridge, my FPS drops below 30. I would think things can be made faster than that. Am I right? Or does 30 piled up squares on a rope bridge seem "too much"? I hope not. Right now I'm doing quick collision test exclusion by doing a radius check around each object. That sped things up a bit. I was thinking about breaking up my world into grid cells and using that as another quick exclusion test too. But in the demo all the things are piled up close, so that wouldn't really help much in this case. Does anybody have any pointers that I'm probably missing on how to get more speed out of my physics library? Thanks, - Jeremiah
Advertisement
You should profile your code and determine which part is slowing it down.

This topic is closed to new replies.

Advertisement