sleepylessons / NetherAnarchy

0 stars 0 forks source link

Dynamic Render Distances on Nether Roof #8

Open sleepylessons opened 3 years ago

sleepylessons commented 3 years ago

Is your feature request related to a problem? Please describe. Players load a lot of chunks when running on the Nether Roof. We can drastically reduce the number of chunks a player loads/generates when running on the roof if we could make their Render Distance smaller on the roof.

Describe the solution you'd like We should hook into Tuinity's Dynamic Render Distance API, and find a good way of determining if they are traveling or just hanging out on the roof (i.e. farming).

If we track a player's movement over time and they are consistently moving at a particular speed, we should lower their Render Distance until they stop traveling.

In this way, we could reduce the strain on the server from people traveling on the roof and free up resources for other things / more players. For now we just want to implement this if they are on the roof, as there's not much need to limit their render distance elsewhere.

This should also allow us to increase the No-Tick render distance for everyone else server-wide. This way, pretty much everywhere but the roof players will be able to see further, but the extra chunks outside the normal Ticking Render Distance of 3 will not tick and will just be VISIBLE to the player. This should improve player experience and make searching around for things a lot easier.