fix: reduce questie fps stutter hot paths

This commit is contained in:
Xurkon
2026-06-12 17:30:48 -05:00
parent 90f1f31474
commit e706fa1130
3 changed files with 20 additions and 8 deletions
+4 -4
View File
@@ -4439,15 +4439,15 @@ function QuestieLearner:OnCombatLogEvent(timestamp, eventType, srcGUID, srcName,
-- "y", tostring(py))
end
-- Phase 3: weighted merge when evidence count is sufficient.
-- Temporarily lowered to 1 for Sunstrider/Mana Wyrm diagnostics so we can
-- verify the promotion path immediately.
-- Phase 3: weighted merge when evidence count is sufficient. The merger
-- itself requires at least three evidence points, so avoid doing its scan
-- on every early kill while the candidate still cannot be promoted.
local guidSpawns = Questie.dbLearner.global.npcs[npcId]
and Questie.dbLearner.global.npcs[npcId][8]
if guidSpawns then
local count = 0
for _ in pairs(guidSpawns) do count = count + 1 end
if self:IsLearnerLiveEnabled() and count >= 1 then
if self:IsLearnerLiveEnabled() and count >= 3 then
_MergeSpawnEvidence(npcId)
end
end