metauni / metaboard

Multiplayer drawing boards for sharing knowledge in Roblox.
Mozilla Public License 2.0
28 stars 6 forks source link

Asynchronous board saving & loading, auto-saving, and board locking #21

Closed sheepish12 closed 2 years ago

sheepish12 commented 2 years ago

Dan's issue https://github.com/metauni/metaboard/issues/20 brought up that boards were saving upon game shutdown synchronously, so they were changed to save asynchronously instead. There is still a relationship between more boards and longer save times (I was getting shutdown times of about 10 seconds with 27 boards). Boards won't save anymore unless a change was made to them, since otherwise there are unnecessary requests to save being made. This should also cut down on save time.

Boards now load asynchronously too which is very noticeable, and are locked for editing until they've successfuly loaded.