Skip to content

Commit 7a0d64a

Browse files
committed
disable per-action timings support, this was causing memory leaks
GitOrigin-RevId: 4d71249b67cf4797f8e922ac567e688aa1b5b26b
1 parent ff098ce commit 7a0d64a

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/us/mcparks/showscript/showscript/framework/schedulers/TimecodeShowScheduler.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,10 @@ public void restart() {
119119

120120

121121
protected void executeShowAction(ShowAction action) {
122-
// Check if timings are enabled in the configuration
123-
if (Main.timingManager != null) {
124-
try (MCTiming timing = Main.timingManager.ofStart("ticks: " + timecode + " " + action.toString(), getTiming())) {
125-
executeActionLogic(action);
126-
}
127-
} else {
128-
executeActionLogic(action);
129-
}
122+
// Per-action timings disabled - creating unique timing names like
123+
// "ticks: X action.toString()" causes Aikar's timing library to cache
124+
// unlimited entries that never get GC'd, causing memory leaks.
125+
executeActionLogic(action);
130126
}
131127

132128
protected void executeActionLogic(ShowAction action) {

0 commit comments

Comments
 (0)