Item detection issues

This commit is contained in:
Salikh Gurgenidze
2026-01-24 01:34:43 +04:00
parent e4e6e31072
commit cb5a0af096
9 changed files with 618 additions and 265 deletions
+15
View File
@@ -15,6 +15,11 @@ function Main:Initialize()
-- Initialize database
addon.Modules.DB:Initialize()
-- Initialize item detection (before scanners, as they may use it)
if addon.Modules.ItemDetection then
addon.Modules.ItemDetection:Initialize()
end
-- Initialize scanners
addon.Modules.BagScanner:Initialize()
addon.Modules.BankScanner:Initialize()
@@ -178,6 +183,12 @@ function Main:SetupSlashCommands()
addon:Print("Tooltip Cache: %d hits, %d misses (%.1f%% hit rate)",
stats.hits, stats.misses, stats.hitRate)
end
-- Show item detection cache stats
if addon.Modules.ItemDetection and addon.Modules.ItemDetection.GetCacheStats then
local stats = addon.Modules.ItemDetection:GetCacheStats()
addon:Print("ItemDetection Cache: %d hits, %d misses (%.1f%% hit rate, %d items)",
stats.hits, stats.misses, stats.hitRate, stats.size)
end
elseif msg == "perfreset" then
-- Reset performance statistics
@@ -193,6 +204,10 @@ function Main:SetupSlashCommands()
if addon.Modules.Utils and addon.Modules.Utils.ClearTooltipCache then
addon.Modules.Utils:ClearTooltipCache()
end
-- Clear item detection cache
if addon.Modules.ItemDetection and addon.Modules.ItemDetection.ClearCache then
addon.Modules.ItemDetection:ClearCache()
end
elseif msg == "help" then
-- Show help