Class TPSCalculator
java.lang.Object
com.zenith.feature.tps.TPSCalculator
-
Constructor Summary
ConstructorsConstructorDescriptionTPSCalculator(int tpsBufferSize) Instances of this class will never be garbage collected automatically If you want to dispose of it, you must unsubscribe it from the event bus manually -
Method Summary
-
Constructor Details
-
TPSCalculator
public TPSCalculator(int tpsBufferSize) Instances of this class will never be garbage collected automatically If you want to dispose of it, you must unsubscribe it from the event bus manually
-
-
Method Details
-
reset
public void reset() -
getTPS
-
getTPSValue
public double getTPSValue()Returns the current average server TPS as a double value in the range [0.0, 20.0]. Falls back to 20.0 when insufficient data has been collected yet.
-