适用于 Minecraft Forge 的 Spark Profiler 是一款性能分析工具,旨在帮助模组制作者和开发者识别并优化其 Minecraft 模组中的性能瓶颈。 该工具可与 Minecraft Forge 集成,并提供各种函数执行时间的详细洞察,帮助开发者精准定位需要改进的地方。 通过分析这些数据,模组制作者可以提升其模组的整体效率,为玩家带来更流畅、更灵敏的游戏体验。
要求:需要 OP 权限。 了解如何授予 OP 权限,请点击这里。
如何在 Minecraft Forge 服务器上安装 Spark
1. 下载与 Minecraft 版本匹配的 Spark ,请点击这里。
2. 登录 BisectHosting Starbase 面板。
3. 停止服务器。
4. 前往 Files 选项卡。
5. 打开 mods 文件夹。
6. 上传第 1 步中已下载的 jar 文件。
7. 启动服务器。
8. 前往 Console 选项卡。
9. 输入所需的命令。
| 命令 | 描述 |
|---|---|
spark profiler |
显示 Spark Profiler 的当前进度 |
spark profiler open |
显示 Spark 实时查看器链接 |
spark profiler stop |
链接 Spark Profiler 的进度并重置 |
spark profiler cancel |
停止 Spark Profiler,并丢失当前进度 |
如何在 Minecraft Forge 服务器上运行 Spark Profiler
1. 在 Minecraft 中,输入以下命令:/spark profiler
2. 至少等待 十分钟。
3. 输入以下命令:/spark profiler stop