Replace MikTRO with a ClassicAPI object pool

Animation event tables now come from CreateUnsecuredObjectPool and are
wiped on release, keeping garbage down under 1.12's stop-the-world GC.
Release the tables that were previously dropped for the GC (hidden
events, the power-gain early return), and make /msbt stats report the
number of tables in use as a leak check.
This commit is contained in:
Brues
2026-10-28 16:53:18 -05:00
parent 4b09ebc3f7
commit a36912af47
5 changed files with 32 additions and 198 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ MikSBT.COMMAND_USAGE = {
" " .. MikSBT.COMMAND_DISABLE .. " - Disables the mod.",
" " .. MikSBT.COMMAND_ENABLE .. " - Enables the mod.",
" " .. MikSBT.COMMAND_SHOWVER .. " - Shows the current version.",
" " .. MikSBT.COMMAND_STATS .. " - Reports stats about table recycling.",
" " .. MikSBT.COMMAND_STATS .. " - Reports how many pooled event tables are in use.",
" " .. MikSBT.COMMAND_SEARCH .. " filter - Sets a filter for searching event types.",
" " .. MikSBT.COMMAND_DEBUG .. " - Toggles debug mode.",
" " .. MikSBT.COMMAND_HELP .. " - Show the command usage.",