注意: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 分析
- 检查实体、方块实体(Tile entities)和事件订阅者的渲染时间
- 该方法非常基础,但应该能帮助你了解可能导致 FPS 问题的原因。
- 客户端配置:
- 自定义渐变
- 色盲支持
- 服务端配置
- 为玩家(非 OP)设置自定义权限
配置
- 将 jar 文件放入 /mods 文件夹
- 确保已安装 TickCentral。先尝试你能找到的最新版本。
- 服务端配置通过
LagGoggles-server.cfg进行 - 玩家可以在游戏内编辑配置文件以更改颜色标尺。
工作原理
在使用 tick() 和 update() 方法前后,使用 System.nanotime() 对实体、方块和事件订阅者进行计时。这些时间会被记录并在性能分析完成后发送给客户端。
优势
- 可视化各种卡顿来源
- 教导玩家建造无卡顿的建筑基地。
依赖项
不兼容
贡献
- 提交拉取请求!
- 如果您有任何建议,我会认真考虑。请注意我的时间非常有限,请直接提交 Pull Requests。
Notice: For versions above 5.3 you need to have TickCentral installed!
TickCentral provides the functionality to be compatible with Mixin, and is intended to work across various Minecraft versions. I have decided to move away from Mixin because I noticed a lot of people having versioning issues with it. (One mod requiring version X, another shipping version Y, Change in behavior in version Z...)
LagGoggles is a profiler where you can see timings in the world, visually. It comes with a custom GUI using a configurable keybind. It's compatible with SpongeForge and Mixin.
You can use LagGoggles as a player too! This is my attempt to create an understanding of what causes lag on a server to regular players. I noticed some common misconceptions like having machines spread out over different chunks causes less lag than putting it in one chunk. With LagGoggles, you can look around and see that alot of small things like pipes or cables cause a tiny bit of lag most of the time, often resulting in more lag than a machine right next to the source would.
LagGoggles can also profile clientside FPS as of version 4.0! Note that this only works on rendering entities.
Download: here
Screenshots
| LagGoggles enabled | normal view |
|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Video explaining the concept
Massive thanks to Grok DuckFarmer for making this video.
Features
- Teleporting to sources of lag
- Client GUI, including overlay and clickable menus
- Colour scale for easy spotting of sources of lag.
- Calculations are done on the client, so each client can have a different colour scale.
- Clientside FPS support
- Checks render time for Entities, Tile entities and event subscribers
- It's very primitive, but it should give some insight in what may cause FPS issues.
- Config for client:
- Custom gradients
- Colorblindness support
- Config for server
- Custom permissions for players (non-operators)
Configuration
- Drop the jar in the /mods folder
- Make sure you have TickCentral installed. Try the latest version you can find first.
- Serverside configuration is done through
LagGoggles-server.cfg - Clients can edit the config in-game to change the colour scale.
How it works
Entities, blocks and event-subscribers are timed using System.nanotime() before and after the tick() and update() methods. These times are recorded and sent to the client when the profiler is done.
Benefits
- Visualisation of various sources of lag
- Learn your players to build lag-free bases.
Dependencies
Incompatible
Contributing
- Submit a pull request!
- If you have suggestions, I will take them into consideration. Please note my time is extremely limited. Pull requests are the way to go here.
下载 LagGoggles
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LagGoggles
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LagGoggles
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LagGoggles
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LagGoggles
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LagGoggles
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LagGoggles
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LagGoggles
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LagGoggles
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LagGoggles
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。










评论 0
登录后参与评分
还没有评论,来抢沙发吧