BlackBeltPanda / Transport-Pipes

Buildcraft without mods! This is a fork of the original Transport-Pipes plugin featuring support for newer versions of Spigot, many bug fixes, performance improvements, and end-user enhancements.
https://www.spigotmc.org/resources/transport-pipes.20873/
MIT License
39 stars 10 forks source link

Relocate item positions on armor stands to reduce occlusion culling #9

Closed KanekiK3n closed 3 years ago

KanekiK3n commented 3 years ago

When looking slightly up the lowest pipe in view will disappear, not sure if its a bug or if it is because of the way it works. Version 1.17.1

BlackBeltPanda commented 3 years ago

That is indeed vanilla behavior. The way armor stands are programmed, they de-render once the stand itself is out of your view. I may be able to improve on it by adjusting the armor stand items to be held closer to the center of the armor stand, allowing them to stay in your view longer, but no guarantees.

KanekiK3n commented 3 years ago

That would be cool if it worked, btw do you have any tips for how to sort a chest system like this: Screenshot (10541) Screenshot (10542)

BlackBeltPanda commented 3 years ago

After further investigation, it doesn't look like it'll be possible to improve this. The reason the armor stands de-render is because they are "marker" armor stands, which is necessary to both reduce lag and fix lighting issues with the pipes. Marker armor stands have their eye position at their base, which makes the game think you can no longer see them earlier when you look away. So this is something Mojang would have to fix on their end, unfortunately.