kakaragame / Kakara

The Kakara base game consisting of the client, engine, common game and server modules.
MIT License
3 stars 0 forks source link

Rewrite ClientChunkWriter #84

Open wyatt-herkamp opened 3 years ago

wyatt-herkamp commented 3 years ago

The ClientChunkWriter located here needs to be gone through and cleaned up.

@ryandw11 if you could go through and update it to be optimized for ODS the correct way. You might also need to make changes to Kakara/Core.

I have changed the API to allow writes on a per block basis. You spoke of this idea the other day. You also said that maybe instead of compressing the file we compress the chunk.

I do want to let you know. Kakara ChunkIO automatically splits up chunk loads so they are done a per file basis inside so inside ChunkWriter#writeChunks(List chunks) my thought the best way to do is to limit file rewrites. However, I am not sure.