Force disable timings

Need a new profiler system with region threading
This commit is contained in:
Spottedleaf 2023-02-23 20:13:44 -08:00
parent 2474482685
commit f7e2fe2267
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,19 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Spottedleaf <Spottedleaf@users.noreply.github.com>
Date: Thu, 23 Feb 2023 20:12:48 -0800
Subject: [PATCH] Force disable timings
Need a new profiler system with region threading
diff --git a/src/main/java/co/aikar/timings/Timings.java b/src/main/java/co/aikar/timings/Timings.java
index dd72a34eaa4bedd9ea0b92eaa79091b00eb4dd09..d886b909d74ad49198204199f7472f5d5bf4f06e 100644
--- a/src/main/java/co/aikar/timings/Timings.java
+++ b/src/main/java/co/aikar/timings/Timings.java
@@ -135,6 +135,7 @@ public final class Timings {
* @param enabled Should timings be reported
*/
public static void setTimingsEnabled(boolean enabled) {
+ enabled = false; // Folia - region threading - disable timings
timingsEnabled = enabled;
reset();
}

View File

@ -1,6 +1,6 @@
Get done before testing: Get done before testing:
- MapItemSavedData, good grief - MapItemSavedData, good grief
- Global tick stuff (weather etc) - Skipping the night by sleeping
- Shutdown/startup process (both the regular and irregular variants) - Shutdown/startup process (both the regular and irregular variants)
- Make sure structurecheck class is thread-safe, and that structure referencing from the structure search - Make sure structurecheck class is thread-safe, and that structure referencing from the structure search
- make sure async teleport / player join / async place entities are saved on shutdown - make sure async teleport / player join / async place entities are saved on shutdown