PlayerViewDistance
让每位玩家拥有独立的服务器端视距,而无需让整台服务器为最大设置买单。
PlayerViewDistance (PVD) 是一款适用于 Fabric、Forge、NeoForge、Paper 和 Folia 的专用服务端模组与插件。它按玩家控制区块加载与发送,精确合并相邻覆盖范围,并将昂贵的规划计算移出主服务器线程。
为什么使用 PVD?
- 独立视距: 使用每位玩家的客户端请求或持久的操作员强制设定。
- 减少不必要的加载: 在模拟距离下限之上,将视距限制为 2 的玩家不会导致 PVD 仅为其加载到视距 8。
- 离线程规划: 几何计算、重叠计算、优先级排序和管理器决策均在单个合并规划器线程上运行。
- 安全的模拟行为: PVD 不改变模拟距离、实体刻录、红石、随机刻录或其他模组的区块票。
- 自适应且可组合: 服务器性能模组可能会降低活动视距,但无法将其提升至 PVD 上限之上。
- 仅限服务端: 原版客户端可以正常连接。
性能影响
在一台视距上限为 12、模拟距离为 4 的服务器上,请求视距为 4 的玩家在模拟距离下限之外不会带来额外的 PVD 加载,而另一位希望视距为 12 的玩家仍可使用该设置。如果许多玩家选择的视距小于服务器最大值,服务器将避免在每个玩家周围执行最大视距的区块工作。
在移动过程中,尤其是在新地形中,这意味着更少的区块持有者晋升、生成任务、磁盘读取、区块序列化以及网络发送。减少这些区块系统的工作量可以降低整体 MSPT(每刻毫秒数),并为实体、红石和其他模组留出更多的刻录余量。具体的改进程度取决于模拟距离、预生成、玩家重叠情况、外部区块票以及区块处理是否当前是服务器的瓶颈。
支持的平台
| 平台 | Minecraft 版本 | Java |
|---|---|---|
| Fabric | 1.21.11 | 21 |
| Fabric | 26.1, 26.1.1, 26.1.2, 26.2 | 25 |
| Forge | 1.21.11 | 21 |
| Forge | 26.1, 26.1.1, 26.1.2, 26.2 | 25 |
| NeoForge | 1.21.11 | 21 |
| NeoForge | 26.1, 26.1.1, 26.1.2, 26.2 | 25 |
| Paper / Folia | 1.21.11 | 21 |
| Paper / Folia | available 26.1.x and 26.2 builds | 25 |
Fabric 需要 Fabric Loader 0.19.3 及对应的 Fabric API。Fabric、Forge 和 NeoForge 构建文件应放入服务端的 mods 目录。Paper/Folia 构建文件应放入 plugins 目录。
视距选择机制
PVD 为每位玩家计算一个上限值:
PVD ceiling = min(world/server cap,
configured maximum,
max(configured minimum, persistent override or client request))
actual distance = min(PVD ceiling, every lower platform or provider limit)
来自服务器、自适应管理器或其他兼容模组的更低限制将被保留尊重。
例如,/pvd set Steve 6 会将视距 6 存储至 Steve 的 UUID。更改 Steve 客户端的视距不会替换此设置。/pvd reset Steve 会移除强制设定并让 Steve 回到其当前客户端请求的视距。强制设定在重连和服务器重启后依然有效。
命令
命令需要在模组加载器上拥有游戏管理员权限,或在 Paper/Folia 上拥有 playerviewdistance.admin 权限。
/pvd set <player> <2..32>
/pvd reset <player>
/pvd status
/pvd list
/pvd reload
/pvd list 报告平均视距及十个最高的活跃玩家视距,以便在大型服务器上保持输出可控。
兼容性
PVD 包含以下专用集成:
- C2ME 和 C2ME No Tick View Distance
- VMP (Very Many Players)
- Moonrise
兼容性覆盖还包括 ServerCore、Lithium、FerriteCore、ModernFix、Alternate Current、ScalableLux、Krypton、Let Me Despawn、Chunky、spark、常见区块加载器以及在可用项目中代表性的服务器整合包。
PVD 保留了强制区块、出生点区块、传送门区块、模拟区块以及第三方区块票。在 Paper/Folia 和 Moonrise 上,它使用原生的每玩家加载器,而不是创建插件区块票。
配置
模组加载器的配置文件存储在 config/ 中。Paper 和 Folia 使用 plugins/PlayerViewDistance/。
{
"schemaVersion": 2,
"minViewDistance": 2,
"maxViewDistance": 32,
"governorProfile": "BALANCED",
"telemetryIntervalSeconds": 60
}
配置重载是事务性的:无效文件保持不变,最后一个有效的配置保持激活状态。UUID 强制设定以原子方式保存在 playerviewdistance-overrides.json 中。
链接
PlayerViewDistance
Give every player their own server-side view distance without making the entire server pay for the largest setting.
PlayerViewDistance (PVD) is a dedicated-server mod and plugin for Fabric, Forge, NeoForge, Paper, and Folia. It controls chunk loading and sending per player, merges nearby coverage exactly, and keeps expensive planning away from the main server thread.
Why use PVD?
- Per-player distances: uses each player's client request or a persistent operator override.
- Less unnecessary loading: beyond the simulation floor, a player capped at distance 2 does not make PVD load distance 8 solely for them.
- Off-thread planning: geometry, overlap calculations, prioritisation, and governor decisions run on one coalescing planner thread.
- Safe simulation behavior: PVD does not change simulation distance, entity ticking, redstone, random ticks, or another mod's tickets.
- Adaptive and composable: server-performance mods may lower the active distance, but cannot raise it above PVD's ceiling.
- Server-only: vanilla clients can connect normally.
Performance impact
On a server capped at view distance 12 with simulation distance 4, a player requesting distance 4 contributes no PVD loading beyond the simulation floor, while another player who wants distance 12 can still use it. If many players choose less than the server maximum, the server avoids doing maximum-distance chunk work around every one of them.
During movement, especially through fresh terrain, that means fewer chunk-holder promotions, generation jobs, disk reads, chunk serializations, and network sends. Reducing that chunk-system work can lower overall MSPT and leave more tick headroom for entities, redstone, and other mods. The exact improvement depends on simulation distance, pregeneration, player overlap, foreign chunk tickets, and whether chunk processing is the server's current bottleneck.
Supported platforms
| Platform | Minecraft versions | Java |
|---|---|---|
| Fabric | 1.21.11 | 21 |
| Fabric | 26.1, 26.1.1, 26.1.2, 26.2 | 25 |
| Forge | 1.21.11 | 21 |
| Forge | 26.1, 26.1.1, 26.1.2, 26.2 | 25 |
| NeoForge | 1.21.11 | 21 |
| NeoForge | 26.1, 26.1.1, 26.1.2, 26.2 | 25 |
| Paper / Folia | 1.21.11 | 21 |
| Paper / Folia | available 26.1.x and 26.2 builds | 25 |
Fabric requires Fabric Loader 0.19.3 and the matching Fabric API. Fabric, Forge, and NeoForge builds belong in the server's mods directory. The Paper/Folia build belongs in plugins.
How the distance is chosen
PVD calculates a ceiling for each player:
PVD ceiling = min(world/server cap,
configured maximum,
max(configured minimum, persistent override or client request))
actual distance = min(PVD ceiling, every lower platform or provider limit)
Lower limits from the server, the adaptive governor, or another compatible mod remain respected.
For example, /pvd set Steve 6 stores a distance of 6 against Steve's UUID. Changing Steve's client view distance will not replace it. /pvd reset Steve removes the override and returns Steve to their current client-requested distance. Overrides survive reconnects and server restarts.
Commands
Commands require game-master permission on mod loaders or playerviewdistance.admin on Paper/Folia.
/pvd set <player> <2..32>
/pvd reset <player>
/pvd status
/pvd list
/pvd reload
/pvd list reports the average and the ten highest active player distances, keeping output manageable on large servers.
Compatibility
PVD includes dedicated integration for:
- C2ME and C2ME No Tick View Distance
- VMP (Very Many Players)
- Moonrise
Compatibility coverage also includes ServerCore, Lithium, FerriteCore, ModernFix, Alternate Current, ScalableLux, Krypton, Let Me Despawn, Chunky, spark, common chunk loaders, and representative server modpacks where those projects are available.
PVD preserves forced, spawn, portal, simulation, and third-party chunk tickets. On Paper/Folia and Moonrise it uses the native per-player loader instead of creating plugin chunk tickets.
Configuration
Mod-loader configuration is stored in config/. Paper and Folia use plugins/PlayerViewDistance/.
{
"schemaVersion": 2,
"minViewDistance": 2,
"maxViewDistance": 32,
"governorProfile": "BALANCED",
"telemetryIntervalSeconds": 60
}
Configuration reloads are transactional: invalid files remain untouched and the last valid configuration stays active. UUID overrides are saved atomically in playerviewdistance-overrides.json.
Links
下载 playerviewdistance
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 playerviewdistance
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 playerviewdistance
下载 playerviewdistance
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 playerviewdistance
下载 playerviewdistance
下载 playerviewdistance
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 playerviewdistance
下载 playerviewdistance
下载 playerviewdistance
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
PlayerViewDistance 2.1.0 将基于玩家的加载设计扩展至 Fabric、Forge、NeoForge、Paper 和 Folia。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧