WorldQL / mammoth

Scale a single world horizontally across multiple Minecraft servers.
https://www.worldql.com/posts/2021-08-worldql-scalable-minecraft/
MIT License
857 stars 47 forks source link

Sometimes players don't load their data for several seconds and snap back to an old position. #51

Closed Jaxkr closed 2 years ago

luludotdev commented 2 years ago

I have a theory that this is just the WorldQL server processing all incoming RecordRead requests before getting to the player profile. Would need to profile to confirm.

If so, could be solved by ensuring the profile read happens before chunk loads. Not entirely sure how to go about doing this.

Jaxkr commented 2 years ago

I've solved this by moving player storage back to redis. WorldQL is designed for spatial messages and data and it works great for player movement and blocks. Player inventory information doesn't need to be indexed by location and we want a simple k-v solution.