CivClassic / CivModCore

Plugin Core and general purpose API for Civ Plugins - Updated for Paper 1.16.5
BSD 3-Clause "New" or "Revised" License
2 stars 20 forks source link

flush chunkmeta more often #110

Closed Gjum closed 2 years ago

Gjum commented 2 years ago

currently only flushes changes some time after chunk unload, which often only happens on server shutdown, causing loss of hours of data when the server crashes (as happened a few times already)

flushing every 30min/5min/whatever would make crashes less painful, and possibly also shorten shutdown/restart times

shadowtrot said:

it would be better to save async to cut main thread load, but for that it needs updated to be safe to do that async currently it synchronizes on the input and output queues and the chunkcoord when unloading to make sure main thread doesn't interfere

wingzero54 commented 2 years ago

Duplicate to #43

Gjum commented 2 years ago

ah didn't see that when looking for similar issues. gonna move over the info and close this one