space-wizards / RobustToolbox

Robust multiplayer game engine, used by Space Station 14
https://spacestation14.io
Other
526 stars 395 forks source link

Incremental blueprint loading [IRRATIONAL] #2300

Open moonheart08 opened 2 years ago

moonheart08 commented 2 years ago

As of now, the game ends up effectively hanging until blueprints finish loading. The best solution for this, of course, is to make the entire process incremental and put a cap on it's ability to munch tick time, which means

PJB3005 commented 2 years ago

Deserialization should probably be completely parallely threadable. Main thread access of entity/component data will need to be incremental but that'll be fine.

Making sure nothing can dunk on the above process accidentally by trying to do shit before the map is fully loaded

Pausing can handle this, probably.