Package dev.inputbooster.api.util
Class InputBoosterStats
java.lang.Object
dev.inputbooster.api.util.InputBoosterStats
Convenience wrapper around
InputBoosterAPI for accessing live stats
without holding a reference to the API instance yourself.
int fps = InputBoosterStats.fps();
int hz = InputBoosterStats.hz();
long recovered = InputBoosterStats.recovered();
All methods return safe default values (0, false) if InputBooster is not loaded.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordImmutable snapshot of the most commonly displayed InputBooster stats. -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleAverage input-to-drain latency in ms, or 0 if not loaded.static intcps()Current CPS (last second), or 0 if not loaded.static intfps()Current FPS as seen by InputBooster, or 0 if not loaded.static inthz()Current poll rate in Hz, or 0 if not loaded.static booleanisActive()True if InputBooster is active and processing inputs.static booleanTrue if InputBooster is in AUTO (FPS-adaptive) mode.static booleanTrue when InputBooster burst mode is currently active.static doublePeak input-to-drain latency in ms, or 0 if not loaded.static longTotal inputs recovered this session, or 0 if not loaded.static InputBoosterStats.Snapshotsnapshot()Captures a consistent one-call view of the current InputBooster stats.static Stringsummary()Returns a human-readable one-line summary of InputBooster state, suitable for HUD overlays or debug screens.static longTotal hits (total ATTACK_PRESSED events processed), or 0 if not loaded.
-
Method Details
-
hz
public static int hz()Current poll rate in Hz, or 0 if not loaded. -
fps
public static int fps()Current FPS as seen by InputBooster, or 0 if not loaded. -
recovered
public static long recovered()Total inputs recovered this session, or 0 if not loaded. -
totalHits
public static long totalHits()Total hits (total ATTACK_PRESSED events processed), or 0 if not loaded. -
cps
public static int cps()Current CPS (last second), or 0 if not loaded. -
isBursting
public static boolean isBursting()True when InputBooster burst mode is currently active. -
avgLatencyMs
public static double avgLatencyMs()Average input-to-drain latency in ms, or 0 if not loaded. -
peakLatencyMs
public static double peakLatencyMs()Peak input-to-drain latency in ms, or 0 if not loaded. -
isActive
public static boolean isActive()True if InputBooster is active and processing inputs. -
isAutoMode
public static boolean isAutoMode()True if InputBooster is in AUTO (FPS-adaptive) mode. -
snapshot
Captures a consistent one-call view of the current InputBooster stats. -
summary
Returns a human-readable one-line summary of InputBooster state, suitable for HUD overlays or debug screens. Example:"InputBooster | 200 Hz | AUTO | CPS 14/20 | Latency 3.1ms"
-