improve targeting function and further improve equipment mid combat lag.

This commit is contained in:
Jrc13245
2025-12-03 08:22:46 -05:00
parent 33ffd85782
commit 30ed4e2bf9
3 changed files with 429 additions and 214 deletions
+4
View File
@@ -96,11 +96,15 @@ CleveRoids.dynamicCmds = {
-- Equipment swap queue system
CleveRoids.equipmentQueue = {}
CleveRoids.equipmentQueueLen = 0 -- PERFORMANCE: Track length to avoid table.getn() every frame
CleveRoids.lastEquipTime = {}
CleveRoids.lastGlobalEquipTime = 0
CleveRoids.EQUIP_COOLDOWN = 1.5 -- Per-slot cooldown
CleveRoids.EQUIP_GLOBAL_COOLDOWN = 0.5 -- Global cooldown
-- PERFORMANCE: Table pool for queue entries to reduce garbage collection
CleveRoids.queueEntryPool = {}
-- Spell queue state (Nampower)
CleveRoids.queuedSpell = nil
CleveRoids.lastCastSpell = nil