TerminatorNL / LagGoggles

A minecraft forge mod which visualises lag in the world
GNU General Public License v3.0
54 stars 20 forks source link

LagGoggles

Intuitive lag hunting!

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
With laggoggles Without laggoggles
With laggoggles Without laggoggles
With laggoggles Without laggoggles

LagGoggles menu LagGoggles menu Entity view Analyzer

Video explaining the concept

Massive thanks to Grok DuckFarmer for making this video.

Minecraft Talk 35 - LagGoggles and Better Server Play

Youtube

Features

Configuration

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

Dependencies

Incompatible

Contributing