StarMade 0.08983: Massive Physics Performance Upgrade

    schema

    Cat God
    Joined
    Feb 17, 2012
    Messages
    1,552
    Reaction score
    2,604
    • Schine
    Hello and welcome to StarMade,

    I just finished upgrading the physics engine with a LOT of optimizations.

    This means in short: The server as well as the client will run a lot faster, especially with bigger ships colliding, or landing on a planet.


    Technical Info
    I implemented a port of Bullet's BoxBoxDetector, which is especially designed for fast single cube on cube collision detection. Before this, I used a more generic algorithm for convex shapes. Furthermore, I profiled the game to the point where I could identify physics calculation hotspots, like the calculation of the overlapping octree cells. By using static mapping of redundant data, I managed to decrease the number of hotspot operations drastically, resulting in much better scalability and overall performance.


    Of course the physics algorithms are still far from perfect, but this update is a big step forward in performance!
    Thanks for playing StarMade,
    - schema