Coder Social home page Coder Social logo

dynamic-render-distance's Introduction

Dynamic Render Distance

Links


This is a server side only fabric mod, that dynamically adjusts the render and simulation distance based on the servers performance.

Config Options

Name Default Value Description
min_mspt 30 The lower threshold in mspt when the mod starts increasing the render/simulation distance
max_mspt 40 The upper threshold in mspt when the mod starts decreasing the render/simulation distance
tick_interval 200 The interval of the mspt check
min_render_distance 10 The minimum render distance the server can have
max_render_distance 32 The maximum render distance the server can have
min_simulation_distance 10 The minimum simulation distance the server can have
max_simulation_distance 32 The maximum simulation distance the server can have
render_to_simulation_ratio 2 The ratio between simulation and render distance
fixed_render_distance 0 The fixed render distance; 0 means dynamic render distance
fixed_simulation_distance 0 The fixed simulation distance; 0 means dynamic simulation distance

Commands

/renderdistance current shows you the current simulation and render distance (Can be executed by non OP players as well)

/renderdistance fixed ratio|render|simulation <value>|auto sets the render/simulation distance or ratio to a fixed value

/renderdistance limit render|simulation <min> <max> sets minimum and maximum render/simulation distance

/renderdistance mspt shows the average MSPT over the last interval

/renderdistance tps shows the average TPS over the last interval

dynamic-render-distance's People

Contributors

gotofinal avatar henkelmax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

gotofinal

dynamic-render-distance's Issues

View Distance Tweaks added features

https://papermc.io/forums/t/1-14-1-17-view-distance-tweaks/3432

This mod has some excellent settings that it adds, and instead of making a feature request for each of them individually I thought I'd make one ticket with the things I'd like to see.

  • Start up delay | For when the server has just booted and is still settling after a restart
  • Passed checks before adjustment | So that it view distance does not jojo between two values each check. The config file of VDT explains why this is a good setting.
  • Chunk Count | When a server is aware of how many chunks it can effectively load without latency it would be nice that the view distance is adjusted to maintain this value.
  • TPS/MSPT Prediction | So that the setting isn't adjusted back and forth between two values where the higher one causes the additional lag to lower it again.

Anyway, a lot of the settings in VDT seem useful to keep a server healthy beyond just checking MSPT every 10 seconds.

I appreciate you creating this mod, as I've been looking for a mod that gives this functionality (Variable view distance) for quite a while. Ticktools exists, but it causes chunk loading issues.

1.19 Support

If possible can this mod be updated to 1.19? Thank you.

Add config option for server console messages to be debug instead of info (Request)

Is your feature request related to a problem? Please describe.
The problem I am having is that there are so many messages from dynamic render distance in my server console that it is annoying, I like to read the console to see what players are doing and see warn messages.

Describe the solution you'd like
I would like an option in the config to change the messages from dynamic render distance from info messages to debug messages so that they no longer appear in the server console.

Describe alternatives you've considered
I've tried changing the mspt boundaries so that changes trigger less often but its not a complete solution and it forces me to use a wider mspt range than I would like

Additional context
I am using fabric 1.18

Dimension specific render distance

I'd like to suggest dimension specific render distance, like this - no longer maintained - mod had done and worked fine until it lasted: https://github.com/BasiqueEvangelist/worldspecificviewdistance-fabric

This would be especially useful in the nether, because of the fog and the obstructive nature, you effectively can only see 8 chunks far. Not sharing the same render distance on all dimensions further improves server performance.

PS:
A few months ago I opened an issue there suggesting dynamic render distance to their mod, but unfortunately they then decided to abandon the project.

(1.18) Make render distance and simulation distance independent //split up

Is your feature request related to a problem? Please describe.
Currently, only min and max render distance can be set. This includes min and max simulation distance.

Describe the solution you'd like
What I'd love to see, is being able to set these 2 independently from one another.

Describe alternatives you've considered

Additional context
afbeelding
As you can see, render distance === simulation distance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.