I sized them 300x300.
I'd post the basic for-loop I used to test but it feels pointless since you just nailed it - they were flagged for transparency.
I turned off the transparency, redrew 30 of them, and no lag whatsoever to processing.
Very enlightening. Thank you.
Edit: here's the code anyway, for curiosity's sake.
-- function
function CreateTestWindow (win, z_order)
WindowCreate (win, 10, 10, 300, 300, 1, 6, 0)
WindowSetZOrder(win, z_order)
WindowFont(win, "8", "Lucida Console", 8, false, false, false, false)
WindowFont(win, "8b", "Lucida Console", 8, true, false, false, false)
WindowFont(win, "9", "Lucida Console", 9, false, false, false, false)
WindowFont(win, "9b", "Lucida Console", 9, true, false, false, false)
WindowShow(win, true)
end
-- clear any existing
for i = 1, 50 do
local win = "test"..i
WindowShow(win, false)
end
-- draw test windows
for i = 1, 15 do
local win = "test"..i
CreateTestWindow(win, i)
print("loading", win)
end
|