Facepunch / garrysmod-issues

Garry's Mod issue tracker
147 stars 56 forks source link

SetImage became slower on chromium beta. #5072

Closed f37ch closed 3 years ago

f37ch commented 3 years ago

Details

Chromium: image Default: image

Steps to reproduce

local DFrame = vgui.Create("DFrame")
DFrame:SetSize(500,500)
DFrame:SetTitle("Test")
DFrame:MakePopup()
local DP = vgui.Create("DPanel",DFrame)
DP:Dock(FILL)
DP:DockMargin(0,0,0,2)
for i=0,58 do
    local but = vgui.Create("DImageButton",DP)
    but:Dock(FILL)
    but.Paint = function(s)
        but:SetImage("icon16/delete.png")
    end
end

P.S. Guess its because of recent filelib update and file.Exist check here. I think result atleast must be cached.

robotboy655 commented 3 years ago

Should be resolved.