Skip to content

Commit

Permalink
Tweak refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekili committed Nov 22, 2024
1 parent e383427 commit a6e179f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ local GetSpellCooldown = function(spellID)
return 0, 0, false, 0
end

local format, insert = string.format, table.insert
local floor, format, insert = math.floor, string.format, table.insert

local HasVehicleActionBar, HasOverrideActionBar, IsInPetBattle, UnitHasVehicleUI, UnitOnTaxi = HasVehicleActionBar, HasOverrideActionBar, C_PetBattles.IsInBattle, UnitHasVehicleUI, UnitOnTaxi
local Tooltip = ns.Tooltip
Expand Down Expand Up @@ -2338,7 +2338,7 @@ do
local spf = 1000 / ( rate > 0 and rate or 100 )

if HekiliEngine.threadUpdates then
Hekili.maxFrameTime = 0.9 * max( 7, min( 16.667, spf, HekiliEngine.threadUpdates.meanWorkTime / math.ceil( HekiliEngine.threadUpdates.meanFrames ) ) )
Hekili.maxFrameTime = 0.9 * max( 7, min( 16.667, spf, 1.1 * HekiliEngine.threadUpdates.meanWorkTime / floor( HekiliEngine.threadUpdates.meanFrames ) ) )
else
Hekili.maxFrameTime = 0.9 * max( 7, min( 16.667, spf ) )
end
Expand Down

0 comments on commit a6e179f

Please sign in to comment.