为什么?
每次想检查服务器状态都要手动输入 /spark tps 和 /spark gc 太麻烦了,所以让它直接显示在 BetterF3 的界面上。
BetterF3 - Spark Module 为 BetterF3 的界面新增了一个模块:实时 TPS、MSPT、CPU 和 GC 统计信息,数据直接来自 spark。
功能说明
| 行名 |
显示内容 |
| TPS |
5秒、10秒、1分钟、5分钟、15分钟的平均值 |
| MSPT |
平均 + 95% 分位数的刻耗时(10秒窗口) |
| GC Young |
平均暂停时间 / 频率 —— 正常的年轻代收集,持续发生,无需担心 |
| GC Full |
平均暂停时间 / 频率 —— 全量 GC,G1 会尽力避免这些。 |
| GC Concurrent |
平均暂停时间 / 频率 —— 后台标记工作,与游戏并行运行,不会暂停游戏 |
| CPU |
当前客户端进程/系统负载 |
配置
无需单独配置文件——它就是另一个 BetterF3 模块。按 F3+M(需要 Cloth Config,与其他 BetterF3 模块相同)来切换显示、移动位置或重新着色单行。
服务端 && 局域网
自己托管世界(单人或局域网)?开箱即用,无需设置。
在别人服务器上游玩时,如果你想看到真实数值而非“未在服务器上安装”的占位符,那么服务器管理员也需要在服务器上放置相同的 jar 文件(以及 spark)。无需额外配置,只要两端都安装了它,就会自动开始广播数据。
为什么服务器端也需要这个插件?
Spark 仅报告其所在机器的数据。作为普通玩家,那台机器是服务器的,而不是你的——除非有东西在那一端共享数据,否则你的客户端无法窥探到它。此插件就是那个“共享数据的桥梁”。
许可证
MIT。它通过 spark 的 MIT 许可 spark-api 读取数据,并通过 BetterF3 的公共模块 API 进行展示——两者均按预期方式使用,未捆绑任何一方的代码。
why?
Too lazy to type /spark tps && /spark gc every time I wanted to check server health, so now it just sits on the BetterF3 screen
BetterF3 - Spark Module adds one more module to BetterF3's screen: live TPS, MSPT, CPU and GC stats, read straight from spark
What you get
| Line |
Shows |
| TPS |
5s, 10s, 1m, 5m, 15m averages |
| MSPT |
mean + 95th percentile tick time (10s window) |
| GC Young |
avg pause / frequency - the normal small collections, happens constantly, nothing to worry about |
| GC Full |
avg pause / frequency - full GC, G1 tries hard to avoid these. |
| GC Concurrent |
avg pause / frequency - background marking work, runs alongside the game without stopping it |
| CPU |
this client's own process/system load |
Config
No separate config - it's just another BetterF3 module. Open F3+M (needs Cloth Config, same as any BetterF3 module) to toggle it, move it, or recolor individual lines.
Server && LAN
Hosting your own world (singleplayer or LAN)? Just works, no setup.
Playing on someone else's server is different if you want real numbers instead of a "not installed on server" placeholder, the server owner needs this same jar (+ spark) on the server too. No config involved, it just starts broadcasting once both sides have it.
Why does the server need this too?
Spark only ever reports on the machine it's running on. As a normal player, that machine is the server's, not yours - your client can't see into it unless something on that end shares the data. This addon is that something.
License
MIT. It reads data through spark's MIT-licensed spark-api, and displays it through BetterF3's public module API - both used as intended, nothing bundled from either.
评论 0
登录后参与评分
还没有评论,来抢沙发吧