mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-26 23:13:22 +00:00
Finer profiling of the worldTick. Will be reworked later. Packets with a size > 32000 are dropped before being sent and print an error to the server console.
25 lines
731 B
Java
25 lines
731 B
Java
package mcp.mobius.opis.data.server;
|
|
|
|
import mcp.mobius.mobiuscore.profiler.IProfilerEntUpdate;
|
|
import mcp.mobius.opis.data.holders.stats.StatsWorld;
|
|
import mcp.mobius.opis.data.managers.GlobalTimingManager;
|
|
|
|
public class EntUpdateProfiler extends AbstractProfiler implements IProfilerEntUpdate {
|
|
|
|
//private static EntUpdateProfiler _instance = new EntUpdateProfiler();
|
|
//public static EntUpdateProfiler instance() {return _instance;}
|
|
//public StatsBase stats = new StatsBase();
|
|
|
|
@Override
|
|
public void EntUpdateStart(int id) {
|
|
this.clock.start();
|
|
}
|
|
|
|
@Override
|
|
public void EntUpdateEnd(int id) {
|
|
this.clock.stop();
|
|
GlobalTimingManager.addStat(id, this.clock.timeDelta, GlobalTimingManager.entUpdateStats);
|
|
}
|
|
|
|
}
|