Skip to content

Commit

Permalink
Don't generate new recommendations in spec update frame.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekili committed Feb 16, 2023
1 parent e6fc249 commit 0add6f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,12 @@ function ns.StartEventHandler()
end

events:SetScript( "OnUpdate", function( self, elapsed )
Hekili.freshFrame = true

if Hekili.PendingSpecializationChange then
Hekili:SpecializationChanged()
Hekili.PendingSpecializationChange = false

-- Spec updates are expensive; exit and do other work in the next frame.
return
end

if handlers.FRAME_UPDATE then
Expand Down

0 comments on commit 0add6f4

Please sign in to comment.