update nampower support to 2_27_2 and pfUI 7_6+

This commit is contained in:
Jrc13245
2026-02-04 16:23:34 -05:00
parent d29b180bd4
commit ee2de33001
6 changed files with 200 additions and 56 deletions
+14
View File
@@ -3901,6 +3901,20 @@ function CleveRoids.OnUpdate(self)
guid, cast = nextGuid, nextGuid and spell_tracking[nextGuid]
end
-- Clean stale castTracking entries (standalone mode only, pfUI 7.6 manages its own)
if not CleveRoids.hasPfUI76 then
local ct = CleveRoids.castTracking
local ctGuid, ctEntry = next(ct)
while ctGuid do
local nextCtGuid = next(ct, ctGuid)
if ctEntry.endTime and time > ctEntry.endTime + 0.5 then
ct[ctGuid] = nil
end
ctGuid = nextCtGuid
ctEntry = nextCtGuid and ct[nextCtGuid]
end
end
-- PERFORMANCE OPTIMIZATION: Run memory cleanup less frequently (every 5 seconds instead of every frame)
-- This reduces CPU usage while maintaining effective memory management
if (time - CleveRoids.lastCleanupTime) >= CleveRoids.CLEANUP_INTERVAL then