PorkStudios / Pork2b2tBot

A minecraft bot thing, also works as a proxy!
https://www.daporkchop.net/pork2b2tbot
Other
46 stars 16 forks source link

High GC Pressure with Chunk loading / TNT Explosions #44

Open VADemon opened 3 years ago

VADemon commented 3 years ago

The amount of created garbage seems excessive for what is being done, imho. It's still managable, but I think could be reduced after profiling.

TNT in particular flooding the console with Chunk is already cached, merging with existing ChunkCache.java

Low priority

DaMatrix commented 3 years ago

there shouldn't be all too much being allocated... in the absolute worst case (chunk update packet containing data for every section in a chunk in the nether) it should only cause the following allocations (sizes are assuming a 64-bit hotspot jvm):

i'll grant you that the log messages could be reduced, though - there's really no reason to log every time the server sends a partial chunk update.