build: rebuild Roblox bundle + worker (round 2: bundle-time ImGui.* localization, patches.lua, library allocations, backend raster/bookkeeping)
This commit is contained in:
1 parent
701156b5cc
commit
6f4ec3c2b7
3 files changed
+7204
-6479
No files matched your search
Generated
+1
-1
@@ -1 +1 @@
|
||||
[[46, "imgui.lua"], [22716, "imgui_demo.lua"], [34573, "imgui_draw.lua"], [42966, "imgui_h.lua"], [45969, "roblox/raster.lua"], [46902, "roblox/textures.lua"], [47140, "roblox/layers.lua"], [47524, "roblox/overlays.lua"], [47605, "roblox/render.lua"], [48499, "roblox/parallel.lua"], [49028, "imgui_impl_roblox.lua"], [49529, "imgui_impl_roblox_fonts.lua"], [55932, "imgui_internal.lua"], [59903, "imgui_tables.lua"], [65016, "imgui_widgets.lua"], [77307, "imstb_rectpack.lua"], [77984, "imstb_textedit.lua"], [79526, "imstb_truetype.lua"], [82487, "imstd_minstdio.lua"]]
|
||||
[[49, "imgui.lua"], [22772, "imgui_demo.lua"], [34632, "imgui_draw.lua"], [43051, "imgui_h.lua"], [46054, "roblox/raster.lua"], [47012, "roblox/textures.lua"], [47263, "roblox/layers.lua"], [47675, "roblox/overlays.lua"], [47756, "roblox/render.lua"], [48818, "roblox/parallel.lua"], [49348, "roblox/patches.lua"], [49633, "imgui_impl_roblox.lua"], [50137, "imgui_impl_roblox_fonts.lua"], [56542, "imgui_internal.lua"], [60516, "imgui_tables.lua"], [65640, "imgui_widgets.lua"], [78007, "imstb_rectpack.lua"], [78684, "imstb_textedit.lua"], [80226, "imstb_truetype.lua"], [83187, "imstd_minstdio.lua"]]
|
||||
Generated
+7175
-6475
File diff suppressed because it is too large.
Load diff
Generated
+28
-3
@@ -490,9 +490,34 @@ local function DrawTriangle(dbuf: buffer, vbuf: buffer, va: number, vb: number,
|
||||
if yt > yb then continue end
|
||||
local o = (yt * TargetWidth + x) * 4 + TargetBase
|
||||
if flat then
|
||||
for _ = yt, yb do
|
||||
BlendPixel(dbuf, o, ra, ga, ba, aa)
|
||||
o += stride
|
||||
-- the row path's flat spans (BlendPixel's math, per-span constants, cached per destination value)
|
||||
local o1 = o + (yb - yt) * stride
|
||||
if f_opaque then
|
||||
for oo = o, o1, stride do writeu32(dbuf, oo, f_packed) end
|
||||
continue
|
||||
end
|
||||
local last_d, last_v = -1, 0
|
||||
for oo = o, o1, stride do
|
||||
local d = readu32(dbuf, oo)
|
||||
if d == last_d then
|
||||
writeu32(dbuf, oo, last_v)
|
||||
elseif d < 16777216 then
|
||||
writeu32(dbuf, oo, f_packed)
|
||||
else
|
||||
last_d = d
|
||||
local dr, dg, db = band(d, 255), band(rshift(d, 8), 255), band(rshift(d, 16), 255)
|
||||
if d >= 4278190080 then
|
||||
last_v = floor(f_rs + dr * f_ns + 0.5) + floor(f_gs + dg * f_ns + 0.5) * 256
|
||||
+ floor(f_bs + db * f_ns + 0.5) * 65536 + 4278190080
|
||||
else
|
||||
local k = rshift(d, 24) * f_c1
|
||||
local oa = f_sa + k
|
||||
local inv2 = 1 / oa
|
||||
last_v = floor((f_rs + dr * k) * inv2 + 0.5) + floor((f_gs + dg * k) * inv2 + 0.5) * 256
|
||||
+ floor((f_bs + db * k) * inv2 + 0.5) * 65536 + floor(oa * 255 + 0.5) * 16777216
|
||||
end
|
||||
writeu32(dbuf, oo, last_v)
|
||||
end
|
||||
end
|
||||
continue
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user