Library: @native on DebugNodeFontGlyphsForSrcMask() (the font atlas glyph grids: a 256-entry scan per codepoint block + 256 AddRect/RenderChar per open block) and on small helpers called from native code (IM_ASSERT, IM_ASSERT_USER_ERROR_RET, ImHashStr's memo, ImVector __index/push_back/pop_back/back/iter)

demo_all scene (whole demo open, headless --roblox, interleaved A/B): lib ~10.1 -> ~9.1 ms/frame, user
instructions/frame -5%; draw data unchanged.
This commit is contained in:
4DBug committed 2026-10-21 03:00:23 -05:00
1 parent c030fe9bce
commit 9d0dc5ee15
3 files changed
+11 -1

No files matched your search

+2
View File
@@ -4939,6 +4939,7 @@ end
local hash_memo, hash_memo_n, HASH_MEMO_MAX = {}, 0, 16384
local ImHashStrRaw
@native
function ImHashStr(str, size, seed)
if seed == nil then seed = 0 end
if size == nil or size == #str then
@@ -20972,6 +20973,7 @@ function ImGui.DebugNodeFontGlyph(font, glyph)
ImGui.Text("SourceIdx: %d", glyph.SourceIdx)
end
@native
function ImGui.DebugNodeFontGlyphsForSrcMask(font, baked, src_mask)
local draw_list = ImGui.GetWindowDrawList()
local glyph_col = ImGui.GetColorU32(ImGuiCol.Text)