ui/improfiler Reference
Module defined in `lua/common/extensions/ui/improfiler.lua`. ImGui-based LuaJIT profiler visualization - renders profiling data as an in-game overlay using ImGui.
Module defined in lua/common/extensions/ui/improfiler.lua. ImGui-based LuaJIT profiler visualization - renders profiling data as an in-game overlay using ImGui.
Exports
Functions
M.onUpdate(dtReal, dtSim, dtRaw)
Hook: Called each frame. Collects profiler samples and renders the profiler UI.
- Parameters:
dtReal- number - Real delta timedtSim- number - Simulation delta timedtRaw- number - Raw delta time
Hooks
onUpdate
Internal Notes
- Built on
jit.profilefor low-overhead sampling prof_cb- profiler callback, accumulates per-function sample countsprof_top- sorts and displays top-N hottest functionsprof_annotate- overlays sample counts on source codeprof_start(mode)- starts profiling with given mode flagsprof_finish()- stops profiling and prepares results for display- Uses
jit.vmdef(fromlibs/LuaJIT/vmdef) for VM state names - Similar to
jit.pbut renders results in ImGui instead of text output
ui/imguiWire Reference
Module defined in `lua/common/extensions/ui/imguiWire.lua`. ImGui wire protocol - serializes ImGui draw commands into a buffer for remote/deferred execution. Enables ImGui rendering across process bou
ui/flowgraph/editor_api_luaintf Reference
Module defined in `lua/common/extensions/ui/flowgraph/editor_api_luaintf.lua`. Lua bindings for the flowgraph node editor C++ API (`Engine.fge`). Provides ID types, enum constants, and editor control