Kiatra / Broker_MicroMenu

1 stars 5 forks source link

FPS lag with broker micro menu #12

Open Kosiee opened 1 month ago

Kosiee commented 1 month ago

Hello

Sorry but there seems to be a new issue with the addon now. After logging in today I am experiencing FPS lag with the addon enabled, capping me at 14 FPS. When I disable it, everything works fine. I installed bugsack and bug grabber and this is the error I am getting. Any idea how to fix this?

Thanks

1722x Broker_MicroMenu/Broker_MicroMenu.lua:94: attempt to index upvalue 'db' (a nil value) [string "@Broker_MicroMenu/Broker_MicroMenu.lua"]:94: in function `UpdateText' [string "@Broker_MicroMenu/Broker_MicroMenu.lua"]:313: in function <Broker_MicroMenu/Broker_MicroMenu.lua:310>

Locals: self =

{ } fps = 14 = 13.395411 = 0.771689 latencyHome = 14 latencyWorld = 14 colorGood = "|cff00ff00" fpsColor = "" colorHome = "" colorWorld = "" (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = nil (temporary) = "attempt to index upvalue 'db' (a nil value)" db = nil dataobj =
{ } path = "Interface\AddOns\Broker_MicroMenu\media\" string =
{ } _G =
{ ERR_OUT_OF_CHI = "Not enough chi" DH_HAVOC_CORE_ABILITY_2 = "Strong melee attack that consumes Fury. If it critical strikes, some Fury is refunded." MultiCastActionButton6Cooldown = MultiCastActionButton6Cooldown { } MerchantItem9ItemButtonStock = MerchantItem9ItemButtonStock { } UNIT_NAMES_COMBATLOG_TOOLTIP = "Color unit names." HUD_EDIT_MODE_SETTING_ACTION_BAR_HIDE_BAR_ART = "Hide Bar Art" LE_GAME_ERR_CHAT_RAID_RESTRICTED_TRIAL = 784 SPELL_FAILED_CUSTOM_ERROR_71 = "This partygoer wants to dance with you." LE_GAME_ERR_PET_SPELL_TARGETS_DEAD = 422 ERROR_CLUB_TICKET_COUNT_AT_MAX_COMMUNITY = "Can't create any more invite links for this community." RecruitAFriendFrame = RecruitAFriendFrame { } TutorialFrameLeft19 = TutorialFrameLeft19 { } MultiCastActionButton2Cooldown = MultiCastActionButton2Cooldown { } ERR_TRADE_EQUIPPED_BAG = "You can't trade equipped bags." PVP_RANK_6_1 = "Corporal" MultiBarLeftButton7 = MultiBarLeftButton7 { } OPTION_TOOLTIP_SHOW_MULTIBAR4 = "Attached to the left side of Right Action Bar 1 by default" LE_GAME_ERR_INVALID_FOLLOW_PVP_COMBAT = 376 MerchantItem3AltCurrencyFrameItem1Text = MerchantItem3AltCurrencyFrameItem1Text { } PROFESSIONS_COLUMN_REAGENTS_NONE = "None" OPTION_SHOW_ACTION_BAR5_TOOLTIP = "Attached to the left side of Action Bar 4 by default" BINDING_NAME_NAMEPLATES = "Show Enemy Nameplates" CHAT_HEADER_SUFFIX = ": " COVENANT_MISSIONS_HEALTH = "Health" MAIL_LETTER_TOOLTIP = "Click to make a permanent copy of this letter." EncounterDetailsPhaseFrameButton291662_TextureDisabled = EncounterDetailsPhaseFrameButton291662_TextureDisabled { } PVPReadyDialogBottomArt = PVPReadyDialogBottomArt { } MultiBar6Button4Flash = MultiBar6Button4Flash { } CALENDAR_RAID_RESET_DESCRIPTION = "%1$s resets at %2$s." CHAT_CONFIG_OTHER_COMBAT =
{ } ClassNameplateBarPaladinFrameRune5 = ClassNameplateBarPaladinFrameRune5 { } TutorialFrameRight19 = TutorialFrameRight19 { } BN_UNABLE_TO_RESOLVE_NAME = "Unable to whisper '%s'. Blizzard services may be unavailable." CinematicFrameRaidBossEmoteFrame = CinematicFrameRaidBossEmoteFrame { } DetailsBreakdownWindowTabFrameSummary6465GenericScrollContainerLeftGenericScrollLeftGenericBarButton1 = DetailsBreakdownWindowTabFrameSummary6465GenericScrollContainerLeftGenericScrollLeftGenericBarButton1 { } LE_GAME_ERR_ONLY_ONE_QUIVER = 36 INT_SPELL_DURATION_HOURS = "%d |4hour:hrs;" SLASH_LibQTip1 = "/qtip" LOSS_OF_CONTROL_DISPLAY_FEAR = "Feared" Options_Frame_RadioButton2 = Options_Frame_RadioButton2 { } POWERBAR_PREDICTION_COLOR_MAELSTROM_CODE = "|cff003366" BankFrameItem17SearchOverlay = BankFrameItem17SearchOverlay { } DMG_LCD = "DMG" ACTION_SPELL_MISSED_POSSESSIVE = "1" MasqueBlizzBars =
{ } SLASH_STOPATTACK1 = "/stopattack" MAP_LEGEND_RARE_TOOLTIP = "A special creature that provides various rewards" MultiCastActionButton4HotKey = MultiCastActionButton4HotKey { } MINIMAP_TRACKING_TRAINER_CLASS = "Class Trainer" SLASH_DISMOUNT2 = "/dismount" DUNGEON_FLOOR_DRAGONBLIGHTCHROMIESCENARIO2 = "Andorhal" DetailsBreakdownWindowTabFrameSummary6465PhaseScrollContainerPhaseScrollPhaseBarButton10StatusBarTextureBackground = DetailsBreakdownWindowTabFrameSummary6465PhaseScrollContainerPhaseScrollPhaseBarButton10StatusBarTextureBackground { } DetailsFrameworkBarNumber291675 = DetailsFrameworkBarNumber291675 { } EMOTE69_CMD1 = "/nosepick" WowTokenRedemptionFrameBg = WowTokenRedemptionFrameBg { } SHIELD_BLOCK_TEMPLATE = "%s Block" AutoFollowStatus = AutoFollowStatus { } ARENA_CASUAL = "Skirmish" STAB

thehumandistraction commented 3 weeks ago

To fix it, open up the options.lua file and change line 5 from:

local version = GetAddOnMetadata("Broker_MicroMenu","X-Curse-Packaged-Version") or ""

to:

local version = C_AddOns.GetAddOnMetadata("Broker_MicroMenu","X-Curse-Packaged-Version") or ""

Kosiee commented 3 weeks ago

Thanks, that worked :)