Skip to content

Commit

Permalink
Disabled sponge loaded chunks calculation since it seems to affect ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraLS3 committed May 31, 2018
1 parent c68a48d commit e5448ee
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private TPS calculateTPS(long diff, long now) {
double tps = Sponge.getGame().getServer().getTicksPerSecond();
int playersOnline = ServerInfo.getServerProperties().getOnlinePlayers();
latestPlayersOnline = playersOnline;
int loadedChunks = getLoadedChunks();
int loadedChunks = -1; // getLoadedChunks();
int entityCount = getEntityCount();

return TPSBuilder.get()
Expand All @@ -80,6 +80,7 @@ private TPS calculateTPS(long diff, long now) {
* @return amount of loaded chunks
*/
private int getLoadedChunks() {
// DISABLED
int loaded = 0;
for (World world : Sponge.getGame().getServer().getWorlds()) {
loaded += world.getLoadedChunks().spliterator().estimateSize();
Expand Down

0 comments on commit e5448ee

Please sign in to comment.