9
0
mirror of https://github.com/BX-Team/DivineMC.git synced 2025-12-20 23:39:16 +00:00

update spark thread names

This commit is contained in:
NONPLAYT
2025-07-10 16:41:04 +03:00
parent 19490233ab
commit b088629964
6 changed files with 30 additions and 25 deletions

View File

@@ -10,6 +10,7 @@ import net.minecraft.world.entity.player.Player;
import net.minecraft.world.phys.AABB;
import net.minecraft.world.phys.Vec3;
import org.bxteam.divinemc.config.DivineConfig;
import org.bxteam.divinemc.spark.ThreadDumperRegistry;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Executor;
@@ -33,7 +34,7 @@ public class CullTask implements Runnable {
private final Vec3d aabbMax = new Vec3d(0, 0, 0);
private static final Executor backgroundWorker = Executors.newCachedThreadPool(task -> {
final TickThread worker = new TickThread("EntityCulling") {
final TickThread worker = new TickThread("Raytrace Entity Tracker Thread") {
@Override
public void run() {
task.run();
@@ -41,6 +42,7 @@ public class CullTask implements Runnable {
};
worker.setDaemon(true);
ThreadDumperRegistry.REGISTRY.add(worker.getName());
return worker;
});