Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
Timings for async entity tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
windcolor-dev committed Sep 16, 2023
1 parent e0fbff6 commit ed62037
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ private void tickWorlds() {
} catch (InterruptedException e) {
e.printStackTrace();
}
ticker.worldserver.timings.tracker.stopTiming();
ticker.getLatch().reset();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ private void run(boolean handleTrackerAsync) {
throw new ReportedException(crashreport);
}

worldserver.timings.tracker.startTiming(); // Spigot
if (handleTrackerAsync) {
AsyncUtil.run(cachedUpdateTrackerTask, AsyncEntityTracker.getExecutor());
} else {
worldserver.timings.tracker.startTiming(); // Spigot

// this.methodProfiler.b();
// this.methodProfiler.a("tracker");
Expand Down

0 comments on commit ed62037

Please sign in to comment.