SparklyPower / SparklyPaper

✨ "Ooooh, sparkly paper!" - SparklyPower's Paper fork, making large servers snappier with high-performance optimizations and improvements!
https://sparklypower.net/
112 stars 12 forks source link

more explanation #13

Closed IPECTER closed 7 months ago

IPECTER commented 7 months ago

I wonder why we cant access biome, block, entity, etc with Parallel World Ticking in async scheduler using plugin. I need more info. I cant understand all.... and I wonder if using async getBiome/Block/Entity without TickThread check code.

sry for bad english...

MrPowerGamerBR commented 7 months ago

I wonder why we cant access biome, block, entity, etc with Parallel World Ticking in async scheduler using plugin.

Because reading/editing the world in a separate thread is not thread safe, Minecraft's code wasn't meant for async access. SparklyPaper only makes world tick in parallel because worlds don't really need to access data present in other worlds to function.