Properer Ping
ModApache-2.0

Properer Ping

A Fabric mod that tracks and provides access to packet latency measurements between the client and server.

215
Downloads
3
Followers
3 months ago
Updated
📦
3
Versions

📖About Properer Ping

Properer Ping

A Fabric mod that tracks and provides access to packet latency measurements between the client and server.

Best paired with a mod like Ping View or Better Ping Display (whenever it gets updated).

Features

  • Tracks latency for the last 5 packets sent between client and server
  • Measures latency in milliseconds with nanosecond precision
  • Thread-safe implementation using concurrent collections

How It Works

The mod uses mixins to intercept Minecraft's query ping/pong packets to measure round-trip time (RTT):

  1. Client sends QueryPingC2SPacket: Contains a timestamp and requests server information
  2. Server responds with PingResultS2CPacket: Echoes back the original timestamp
  3. ClientPlayNetworkHandlerMixin: Intercepts the pong response
  4. PacketLatencyTracker: Calculates latency as (response time - request time)

RTT is measured as the time between sending a query ping and receiving the pong response.