适用于 Minecraft 1.12.2 的 LagGoggles 模组
一个可分析并可视化世界中卡顿的 Minecraft Forge 模组。
注意:对于 5.3 以上的版本,你需要安装 TickCentral!
TickCentral 提供了与 Mixin 兼容的功能,并旨在跨多个 Minecraft 版本工作。我决定不再使用 Mixin,因为我注意到很多人在使用它时遇到版本问题。(一个模组需要版本 X,另一个附带版本 Y,版本 Z 中行为变化……)
LagGoggles 是一个性能分析器,你可以在世界中直观地查看耗时。它带有一个自定义 GUI,使用可配置的按键绑定。它与 SpongeForge 和 Mixin 兼容。
你作为玩家也可以使用 LagGoggles!这是我尝试让普通玩家理解服务器上什么导致卡顿的努力。我注意到一些常见的误解,比如将机器分散在不同的区块中比放在一个区块中造成的卡顿更少。使用 LagGoggles,你可以环顾四周,看到许多小东西如管道或线缆大多数时候会造成一点点卡顿,往往比紧挨着源头的机器造成的卡顿更多。
从 4.0 版本起,LagGoggles 还可以分析客户端 FPS!请注意,这仅适用于渲染实体。
下载:这里
截图
启用 LagGoggles 的普通视图
解释概念的视频
非常感谢 Grok DuckFarmer 制作了这个视频。
功能
- 传送到卡顿源头
- 客户端 GUI,包括叠加层和可点击菜单
- 颜色刻度,便于发现卡顿源头。
- 计算在客户端完成,因此每个客户端可以有不同的颜色刻度。
- 客户端 FPS 支持
- 检查实体、方块实体和事件订阅者的渲染时间
- 它非常原始,但应该能让你了解可能导致 FPS 问题的原因。
- 客户端配置:
- 自定义渐变
- 色盲支持
- 服务器配置
- 玩家(非管理员)的自定义权限
配置
- 将 jar 文件放入 /mods 文件夹
- 确保你安装了 TickCentral。先尝试你能找到的最新版本。
- 服务器端配置通过 LagGoggles-server.cfg 完成
- 客户端可以在游戏内编辑配置以更改颜色刻度。
工作原理
实体、方块和事件订阅者在 tick() 和 update() 方法前后使用 System.nanotime() 计时。这些时间被记录,并在分析器完成后发送到客户端。
优点
- 可视化各种卡顿源头
- 教会你的玩家建造无卡顿的基地。
依赖
- TickCentral
不兼容
- Tiquality
贡献
- 提交拉取请求!
- 如果你有建议,我会考虑它们。请注意我的时间非常有限。拉取请求是这里的最佳方式。
如何安装 LagGoggles
With Millida Launcher
Install Millida Launcher
The launcher is free: download it at millida.net/launcher and sign in with any nickname.
Click “Install” on this page
The launcher opens and installs the mod for Minecraft 1.10.2–1.12.2 on Forge automatically.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Install Forge
The loader must match the game version of the mod file, for example Minecraft 1.12.2. After installing it, a separate profile appears in your launcher.
Download the file for your version
In the version list above, pick the file LagGoggles-1.12.2-5.9-140.jar (175 KB) for your game version.
Put it in the mods folder
The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it.
Launch the loader profile
Open “Mods” in the main menu: LagGoggles should be in the list.
Minecraft 1.12.2 runs on Java 8: with a different Java version the game may close right after launch.
版本
含依赖项
| Minecraft | 加载器 | 文件 | 日期 | 操作 |
|---|---|---|---|---|
| 1.12.2 | Forge | LagGoggles-1.12.2-5.9-140.jar175 KB 1 | ||
| 1.12.2 | Forge | LagGoggles-FAT-1.12.2-4.11-92.jar1.1 MB | ||
| 1.12.2 | — | LagGoggles-FAT-1.12.2-4.6.jar1.1 MB | ||
| 1.10.2 | — | LagGoggles-1.1.Server.jar64.6 KB |
常见问题
Which Minecraft versions does LagGoggles work on?
There are files for 1.12.2, 1.10.2. The newest is 1.12.2.
Is LagGoggles for Forge or Fabric?
Only for Forge: 1.12.2. There are no files for Fabric or NeoForge: a mod for another loader will not start.
Does LagGoggles need other mods?
The author lists no required dependencies: the Forge loader is enough.
Which Java does LagGoggles need?
Minecraft 1.12.2 runs on Java 8. If the game closes right after launch, the usual cause is the wrong Java version in the profile settings.
Where can I download LagGoggles safely?
On this page: the file LagGoggles-1.12.2-5.9-140.jar (175 KB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: ef22439d92e38e4fc79df4ff95b2e8708f645db8.
评价
成为第一个评价 LagGoggles 的人

