Panda View Adjust
Fabric server-side mod that automatically adjusts view and simulation distances based on player count and MSPT. You can specify at what player count or MSPT values the view and simulation distances will change.
This mod helps maintain server MSPT at a reasonable level even with many connected players. It also allows using very high view distance values when there are almost no players on the server.
Configuration Setup
Configuration file is automatically created at runtime: config/PandaViewConfig.json
[
// The best acceptable view and simulation distance values can be at the top
{ // 5 or fewer players, 20 or less MSPT
"maxPlayerCount": 5, // Maximum player count for this configuration (can be 0 to ignore)
"maxMSPT": 20, // Maximum MSPT value for this configuration (can be 0 to ignore)
"viewDistance": 32, // What view distance to set in this configuration
"simulationDistance": 6 // What simulation distance to set in this configuration
},
// ... Intermediate steps
{ // The lowest acceptable view and simulation distance values can be at the bottom
"maxPlayerCount": 0,
"maxMSPT": 0,
"viewDistance": 3,
"simulationDistance": 3
}
]
Implementation and Testing
Analog of Fabric's ViewDistanceTweaks, providing automatic server performance optimization.