Do batch processing for offline players

Michael Moore shared this feedback 4 years ago
Submitted

Batch processing for offline players would be a significant optimization to Space Engineers. It would benefit single and multi player experiences. In single player, the player would not need to leave the application running to refine large amounts of material. In multiplayer, ships with players that are logged off and no one else around would not take any processing power.

In short this is how I imagine the process looking:

Player logs off

servers checks if any other players are in an X radius of player owned ships.

yes players nearby, stop here

no player nearby, offload the ship(s) from memory to the hard drive with a timestamp and any other relevant data

when the player logs back in or another player gets close to where the ship was, load the ship back into memory and do any catch up processing.

Examples:

A player logs off a server with 72 hours of material to refine(of which none is uranium). to make it simple the player has a single refinery and a reactor with one bar of uranium. when the player logs back in the server, it would check that the player only had X amount of Kw/h because they only a so much fuel in their reactor. It would update the amount of material that refined biased of that calculation, and the player would logon to a de-powered ship with some of their material processed.

It's becomes a one time calculation rather than a continuous one, thus saving processing power for the server.

A more completed example,

Same as before but this time the player has 1 solar panel. when the player logs in, the server updates the material processed biased on the amount in the reactor plus the amount of Kw/h that would have been generated by the solar panel. The amount the solar panel generate is calculated by take samples of what angle the solar panel gets power vs the path the sun travels, and just getting the net amount of Kw/h generated in that time and applying that to the amount of materials refined.

I understand that a feature like this would require more considerations than this to be implemented, however it would be worth the optimization it would provide.

Thank you for taking the time to read this proposal.

Leave a Comment
 
Attach a file