How to prevent docked entity collision lagg when breaking free

    Joined
    Dec 14, 2014
    Messages
    745
    Reaction score
    158
    • Community Content - Bronze 1
    • Purchased!
    • Legacy Citizen 2
    There are 3 options I can think of.
    The first is create a flag inside the selection system for turret and ship and call it hull or whatever you choose.
    While this is set to that option docked entities remain with the ship regardless if the dock is destroyed.

    Option 2 turn off collision detection between a docked entity and its parent if it breaks free.

    Option 3 stop storing docked entities in deeper and deeper sub directories. Create a single directory called docked. Then create a list of those entities in an XML file showing their connection that way. Right now you are creating a list by stepping through all these directories and loading the files. That is quite a bit slower.

    If you want even more speed. Compress them into a single file. Running compression is far faster than loading a large file or multiple files. Drive access speed is very slow in comparison.