Commit Graph

25 Commits

Author SHA1 Message Date
mworzala 1246fa57d7
feat: anvil reading, other minor fixes 2024-04-25 08:45:36 -04:00
mworzala 49f8ae1223
feat: simplify sound events, fix update explosion packet 2024-04-25 08:45:35 -04:00
Xavier Niochaut f62d4e47fc
Heavily reduce memory consumption of AnvilLoader (#1005)
* (Heavily) Reduce memory consumption of AnvilLoader
/!\ requires building and publishing Hephaistos master to local Maven for now

* Cache biome mapping per chunk instead of per section

* Starting work on integration tests

* [AnvilLoader] Address issue #423

* [AnvilLoader] Use new Hephaistos saving API

* Use MavenCentral version of Hephaistos
2022-08-05 21:05:23 +02:00
TheMode 8dcc3000cf Use a common pool instead of creating new threads on every chunk save
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-10 16:51:21 +01:00
TheMode 9fe3f28497 Improve ThreadLocal performance when calling from a minestom thread
Signed-off-by: TheMode <themode@outlook.fr>
2021-09-25 19:37:14 +02:00
TheMode cb7bccf26c Load `level.dat` nbt on instance init 2021-08-09 01:16:51 +02:00
TheMode 16fbc5ea2c Simplify Player#setInstance 2021-07-28 17:28:36 +02:00
TheMode 6cdf8a9ab9 Add constant for null future 2021-07-11 03:35:17 +02:00
TheMode 37b5575484 Support async chunk loading 2021-07-11 03:14:17 +02:00
TheMode b9679bc1ac Initial future commit 2021-07-11 02:54:02 +02:00
TheMode 8bc9bc7de5 Rename StorageChunkLoader 2021-06-20 20:46:57 +02:00
Tyan 855c8af455 Added ExceptionManager for custom exception handling 2021-01-20 11:43:45 +01:00
themode 3d96b7a4b4 A lot of annotations a bit everywhere. 2020-10-24 10:46:23 +02:00
themode 3e59c9d396 Added IChunkLoader#saveChunks with a default implementation 2020-10-24 09:34:19 +02:00
themode 74e37e681b Added Chunk#setEnableCachePacket to improve memory usage when needed 2020-10-15 08:21:13 +02:00
themode 88ef4eb3c0 Comments 2020-10-12 03:18:02 +02:00
themode cbe2a0b71e Comments 2020-10-12 02:56:30 +02:00
themode 09582cffc1 Comments for IChunkLoader specifying when to execute the callbacks 2020-09-27 20:48:12 +02:00
themode c43064c3a0 Replaced chunk consumers by ChunkCallback and fixed chunk callbacks being called in the block pool when in a batch 2020-09-19 18:35:00 +02:00
themode 46b772c901 Clarification in IChunkLoader#loadChunk comment 2020-09-02 10:30:03 +02:00
Felix Cravic 45fd0dc22a Comments 2020-08-07 09:14:50 +02:00
Felix Cravic 189376f951 Cleanup + javadoc comments 2020-07-21 18:48:15 +02:00
jglrxavpok dfdf93bfc4 ChunkLoader can now indicate that they support parallel loading or saving 2020-07-07 13:41:55 +02:00
jglrxavpok ef8c275c4d Moved chunk creation out of chunk loaders 2020-06-30 18:12:09 +02:00
jglrxavpok 1ddef81372 Customizable chunk loader for InstanceContainers 2020-06-30 18:07:47 +02:00