diff --git a/KkthnxUI/Developer/Core.lua b/KkthnxUI/Developer/Core.lua index 95759264..46550cd8 100644 --- a/KkthnxUI/Developer/Core.lua +++ b/KkthnxUI/Developer/Core.lua @@ -1,25 +1,6 @@ local K, C, L = KkthnxUI[1], KkthnxUI[2], KkthnxUI[3] local Module = K:NewModule("Developer") --- Benchmarking global vs. cached access in WoW Lua -local _G = _G -_G.fake1 = 42 -- Set up a global variable - --- Case 1: Direct global access -local start_time = debugprofilestop() -for i = 1, 1e7 do - local temp = _G.fake1 -end -print("Global access:", debugprofilestop() - start_time, "ms") - --- Case 2: Cached access -local fake1 = _G.fake1 -start_time = debugprofilestop() -for i = 1, 1e7 do - local temp = fake1 -end -print("Cached access:", debugprofilestop() - start_time, "ms") - K.Devs = { ["Kkthnx-Area 52"] = true, ["Kkthnx-Valdrakken"] = true, diff --git a/KkthnxUI/Init.lua b/KkthnxUI/Init.lua index a0f80fef..5c90e1e3 100644 --- a/KkthnxUI/Init.lua +++ b/KkthnxUI/Init.lua @@ -251,7 +251,7 @@ function K.SetupUIScale(init) local scale = C["General"].UIScale if init then - local pixel = 16 + local pixel = 1 local ratio = 768 / K.ScreenHeight K.Mult = (pixel / scale) - ((pixel - ratio) / scale) elseif not InCombatLockdown() then