From d1818970b53dd5e4f1a4a1336e418e0dcdf39334 Mon Sep 17 00:00:00 2001 From: 4DBug Date: Sun, 25 Oct 2026 05:44:24 -0500 Subject: [PATCH] 0.4.4 Performance update (Roblox), no API changes; pixels identical to 0.4.3. - Raster: solid spans 4-8 px per loop iteration, full-width rows copied in blocks, bit32 colour unpacking (colorpicker -19%, implot -13%, fonts -16%) - Raster: axis-aligned edges tested once per row / column, AA fringe rows with alpha 0 skipped, triangle / line quad spans from per-side edge slots, narrow spans (vertical lines, histogram bars) without row bookkeeping (plots up to -25%) - ImPlot rect fills (heatmaps, bars) drawn as one primitive instead of two triangles (implot -3.5%) - DirtyRects: greedy diff of a tile's old and new primitive list, so scrolling no longer redraws everything after the first shifted row (scroll: 14.1k -> 4.3k pixels rasterized per frame) - Hover recolors skip tile hashing and redraw only the affected tiles; unrolled per-primitive vertex hash; per-command primitive data (CollectPrims -10%) - Library: @native table layout functions, trunc helpers, ImDrawListSplitter:Merge() via table.move (demo -2..4% instructions) - stb_truetype: CFF-only / font-init functions no longer @native, -312 KB native code (more headroom under Studio's native code budget) - Fix: clicking right after the Studio/game window regains focus (without moving the mouse first) did nothing - Extensions: submodules point at the current implot-luau, imguicolortextedit-luau, implot3d-luau and imguizmo-luau commits - tests: t_recolor_pixels, t_scroll_pixels, native_size.py (native code budget check) --- .github/README.md | 2 +- README.md | 2 +- wally.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/README.md b/.github/README.md index 2471895..d934bd0 100644 --- a/.github/README.md +++ b/.github/README.md @@ -116,7 +116,7 @@ The Style Editor (`ImGui.ShowStyleEditor()`) and the Metrics/Debugger (`ImGui.Sh ### Getting Started & Integration (Roblox) -With [Wally](https://wally.run) ([4dbug/imgui-luau](https://wally.run/package/4dbug/imgui-luau)): add `ImGui = "4dbug/imgui-luau@0.4.3"` under `[dependencies]` in your `wally.toml`, run `wally install`, then `require(ReplicatedStorage.Packages.ImGui)`. Or from source: +With [Wally](https://wally.run) ([4dbug/imgui-luau](https://wally.run/package/4dbug/imgui-luau)): add `ImGui = "4dbug/imgui-luau@0.4.4"` under `[dependencies]` in your `wally.toml`, run `wally install`, then `require(ReplicatedStorage.Packages.ImGui)`. Or from source: 1. Build the module: `python3 tools/bundle.py` writes `build/ImGui.luau` (`--no-demo` leaves the demo out) and `build/ImGuiTyped.luau`, a small typed entry module (Luau types for the public `ImGui.*` API, `ImVec2`/`ImVec4` and the flag enums) that requires `build/ImGui.luau` as its child `Impl`. The Wally package and the Rojo projects use that layout, so you get autocomplete and type errors in `--!strict` scripts. The single-file `ImGui.luau` also works on its own, just untyped. 2. Sync with [Rojo](https://rojo.space): [`default.project.json`](/default.project.json) puts the module in `ReplicatedStorage.ImGui` and the example LocalScript in `StarterPlayerScripts`. diff --git a/README.md b/README.md index e8edbc1..20bfa1f 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ The Style Editor (`ImGui.ShowStyleEditor()`) and the Metrics/Debugger (`ImGui.Sh ### Getting Started & Integration (Roblox) -With [Wally](https://wally.run) ([4dbug/imgui-luau](https://wally.run/package/4dbug/imgui-luau)): add `ImGui = "4dbug/imgui-luau@0.4.3"` under `[dependencies]` in your `wally.toml`, run `wally install`, then `require(ReplicatedStorage.Packages.ImGui)`. Or from source: +With [Wally](https://wally.run) ([4dbug/imgui-luau](https://wally.run/package/4dbug/imgui-luau)): add `ImGui = "4dbug/imgui-luau@0.4.4"` under `[dependencies]` in your `wally.toml`, run `wally install`, then `require(ReplicatedStorage.Packages.ImGui)`. Or from source: 1. Build the module: `python3 tools/bundle.py` writes `build/ImGui.luau` (`--no-demo` leaves the demo out) and `build/ImGuiTyped.luau`, a small typed entry module (Luau types for the public `ImGui.*` API, `ImVec2`/`ImVec4` and the flag enums) that requires `build/ImGui.luau` as its child `Impl`. The Wally package and the Rojo projects use that layout, so you get autocomplete and type errors in `--!strict` scripts. The single-file `ImGui.luau` also works on its own, just untyped. 2. Sync with [Rojo](https://rojo.space): [`default.project.json`](default.project.json) puts the module in `ReplicatedStorage.ImGui` and the example LocalScript in `StarterPlayerScripts`. diff --git a/wally.toml b/wally.toml index 95391fb..f9b71c7 100644 --- a/wally.toml +++ b/wally.toml @@ -1,6 +1,6 @@ [package] name = "4dbug/imgui-luau" -version = "0.4.3" +version = "0.4.4" registry = "https://github.com/UpliftGames/wally-index" realm = "shared" license = "MIT"