Library: @native on hot interpreted paths (Begin/End, NewFrame key loops, table rows, sliders, buttons, wrapped text, GetFontBaked)

Fewer native<->interpreter transitions on the per-item call chains. Stress+demo headless (--roblox) 0.98 -> 0.93 ms/frame,
draw data unchanged.
This commit is contained in:
4DBug committed 2026-10-20 15:19:28 -05:00
1 parent c1c59bde47
commit d9d8ee4e6b
4 files changed
+21

No files matched your search

+3
View File
@@ -2259,6 +2259,7 @@ end
-- [Public] Starts into the first cell of a new row
--- @param row_flags? ImGuiTableRowFlags
--- @param row_min_height? float
@native
function ImGui.TableNextRow(row_flags, row_min_height)
if row_flags == nil then row_flags = 0 end
if row_min_height == nil then row_min_height = 0.0 end
@@ -2288,6 +2289,7 @@ function ImGui.TableNextRow(row_flags, row_min_height)
end
-- [Internal] Only called by TableNextRow()
@native
function ImGui.TableBeginRow(table_)
local window = table_.InnerWindow
IM_ASSERT(not table_.IsInsideRow)
@@ -2332,6 +2334,7 @@ end
local TableEndRow_RowMin, TableEndRow_RowMax = ImVec2(), ImVec2()
-- [Internal] Called by TableNextRow()
@native
function ImGui.TableEndRow(table_)
local g = GImGui
local window = g.CurrentWindow