mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
added a fixme marker
This commit is contained in:
@@ -108,7 +108,7 @@ class QuickSingleplayerWorldSavingThread(
|
||||
ingame.world.getLayer(layerNum)?.let { layer ->
|
||||
chunks.forEach { chunkNumber ->
|
||||
|
||||
// Echo("Writing chunks... $chunksWrote/$chunkCount")
|
||||
printdbg(this, "Writing chunks... $chunksWrote/$chunkCount")
|
||||
|
||||
val chunkXY = LandUtil.chunkNumToChunkXY(ingame.world, chunkNumber)
|
||||
|
||||
@@ -135,9 +135,14 @@ 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)
|
||||
addFile(disk, actor); skimmer.appendEntry(actor)
|
||||
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