Draylar / get-off-my-lawn

Keep people off your lawn with claims! Built for Fabric.
https://www.curseforge.com/minecraft/mc-mods/get-off-my-lawn
MIT License
4 stars 18 forks source link

Claims are rendered regardless of position #6

Open Draylar opened 4 years ago

Draylar commented 4 years ago

The Goggles Item renders claim outlines regardless of their position, which means claims 1,000 blocks away are still attempting to display. This can be fixed with a single distance check in WorldRendererMixin.

JamiesWhiteShirt commented 4 years ago

You can (efficiently) select which claims to render based on the camera frustum with a spatial query on the R-tree, which will not only account for distance but also anything that is out of view.

Example