CoordinatesChunk can now use some metadata for various purposes (right now, will be used for ChunkLoaded/Forced).

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.
This commit is contained in:
ProfMobius committed 2014-03-25 18:39:46 +01:00
1 parent dcbc5e2f59
commit d8dc1af510
7 files changed
+137 -39

No files matched your search

@@ -112,11 +112,11 @@ public class ServerMessageHandler {
}
else if (maintype == Message.VALUE_TIMING_WORLDTICK){
OpisPacketHandler.validateAndSend(Packet_DataValue.create(Message.VALUE_TIMING_WORLDTICK, new SerialDouble(GlobalTimingManager.getTotalWorldTickStats())), (Player)player);
OpisPacketHandler.validateAndSend(Packet_DataValue.create(Message.VALUE_TIMING_WORLDTICK, new SerialDouble(GlobalTimingManager.getTotalStats(GlobalTimingManager.worldTickStats))), (Player)player);
}
else if (maintype == Message.VALUE_TIMING_ENTUPDATE){
OpisPacketHandler.validateAndSend(Packet_DataValue.create(Message.VALUE_TIMING_ENTUPDATE, new SerialDouble(GlobalTimingManager.getTotalEntUpdateStats())), (Player)player);
OpisPacketHandler.validateAndSend(Packet_DataValue.create(Message.VALUE_TIMING_ENTUPDATE, new SerialDouble(GlobalTimingManager.getTotalStats(GlobalTimingManager.entUpdateStats))), (Player)player);
}
else if (maintype == Message.LIST_AMOUNT_ENTITIES){