mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 11:04:05 +09:00
fix: autosave being god damn slow
This commit is contained in:
@@ -135,13 +135,9 @@ class QuickSingleplayerWorldSavingThread(
|
||||
actorsList.forEachIndexed { count, it ->
|
||||
printdbg(this, "Writing actors... ${count+1}/${actorsList.size} (${it.javaClass.canonicalName})")
|
||||
|
||||
printdbg(this, " Serialising")
|
||||
val actorContent = EntryFile(WriteActor.encodeToByteArray64(it))
|
||||
printdbg(this, " Preparing disk entry")
|
||||
val actor = DiskEntry(it.referenceID.toLong(), ROOT, creation_t, time_t, actorContent)
|
||||
printdbg(this, " DOM add entry (${actor.entryID})")
|
||||
addFile(disk, actor)
|
||||
printdbg(this, " Skimmer append entry") // FIXME too slow!
|
||||
skimmer.appendEntry(actor)
|
||||
|
||||
WriteSavegame.saveProgress += actorProgressMultiplier
|
||||
|
||||
Reference in New Issue
Block a user