From f7e2fe22674a2a81d86e64a180f39caac389a39d Mon Sep 17 00:00:00 2001 From: Spottedleaf Date: Thu, 23 Feb 2023 20:13:44 -0800 Subject: [PATCH] Force disable timings Need a new profiler system with region threading --- patches/api/0001-Force-disable-timings.patch | 19 +++++++++++++++++++ regiontodo.txt | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 patches/api/0001-Force-disable-timings.patch diff --git a/patches/api/0001-Force-disable-timings.patch b/patches/api/0001-Force-disable-timings.patch new file mode 100644 index 0000000..f3f46df --- /dev/null +++ b/patches/api/0001-Force-disable-timings.patch @@ -0,0 +1,19 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Spottedleaf +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(); + } diff --git a/regiontodo.txt b/regiontodo.txt index 2af5a9b..237ce55 100644 --- a/regiontodo.txt +++ b/regiontodo.txt @@ -1,6 +1,6 @@ Get done before testing: - MapItemSavedData, good grief -- Global tick stuff (weather etc) +- Skipping the night by sleeping - 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 async teleport / player join / async place entities are saved on shutdown