From 8511d6e6b83daf56f397fe3e6bfd5ce64f3d3d96 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sat, 28 Dec 2024 09:15:24 -0600 Subject: [PATCH] Add networking thread pool to F3 screen --- .../distanthorizons/core/logging/f3/F3Screen.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/core/src/main/java/com/seibel/distanthorizons/core/logging/f3/F3Screen.java b/core/src/main/java/com/seibel/distanthorizons/core/logging/f3/F3Screen.java index 695cd3783..0ee693657 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/logging/f3/F3Screen.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/logging/f3/F3Screen.java @@ -79,10 +79,17 @@ public class F3Screen */ public static void addStringToDisplay(List messageList) { + // multi thread pools ThreadPoolExecutor worldGenPool = ThreadPoolUtil.getWorldGenExecutor(); ThreadPoolExecutor fileHandlerPool = ThreadPoolUtil.getFileHandlerExecutor(); ThreadPoolExecutor updatePool = ThreadPoolUtil.getUpdatePropagatorExecutor(); ThreadPoolExecutor lodBuilderPool = ThreadPoolUtil.getChunkToLodBuilderExecutor(); + ThreadPoolExecutor networkPool = ThreadPoolUtil.getNetworkCompressionExecutor(); + + // single thread pools + ThreadPoolExecutor cleanupPool = ThreadPoolUtil.getCleanupExecutor(); + ThreadPoolExecutor beaconCullingPool = ThreadPoolUtil.getBeaconCullingExecutor(); + ThreadPoolExecutor migrationPool = ThreadPoolUtil.getFullDataMigrationExecutor(); AbstractDhWorld world = SharedApi.getAbstractDhWorld(); Iterable levelIterator = world.getAllLoadedLevels(); @@ -115,10 +122,16 @@ public class F3Screen // thread pools if (Config.Client.Advanced.Debugging.F3Screen.showThreadPools.get()) { + // multi thread pools messageList.add(getThreadPoolStatString("World Gen/Pull Chunk", worldGenPool));//"World Gen Tasks: 40/5304, (in progress: 7)"); messageList.add(getThreadPoolStatString("File Handler", fileHandlerPool)); messageList.add(getThreadPoolStatString("Update Propagator", updatePool)); messageList.add(getThreadPoolStatString("LOD Builder", lodBuilderPool)); + messageList.add(getThreadPoolStatString("Networking", networkPool)); + //// single thread pools + //messageList.add(getThreadPoolStatString("Cleanup", cleanupPool)); + //messageList.add(getThreadPoolStatString("Beacon Culling", beaconCullingPool)); + //messageList.add(getThreadPoolStatString("Migration", migrationPool)); messageList.add(""); }