mirror of
https://github.com/PaperMC/Folia.git
synced 2024-11-28 13:05:13 +01:00
Force disable timings
Need a new profiler system with region threading
This commit is contained in:
parent
2474482685
commit
f7e2fe2267
19
patches/api/0001-Force-disable-timings.patch
Normal file
19
patches/api/0001-Force-disable-timings.patch
Normal 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();
|
||||||
|
}
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user