Two sessions of twenty interleaved passes on master for 0.11.0, from the
same binaries as 2026-11-10: software 8.8 MB / 6.0%, direct3d11 57.6 MB /
11.7%, direct3d12 120.5 MB / 5.2%, opengl 68.7 MB / 5.9%. software's
median falls between its two memory levels (16 of 40 runs on the lower).
The page now says how far a whole session moves with nothing changed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apple Clang rendered bench 5-8% faster with it, with no new warnings, so
REAKTOR_LTO now defaults to ON there as with MSVC. The macOS release builds
its static libreaktor with it off, as the Windows release does, since its
objects link only with the same compiler. GCC (69 new warnings in
dependencies) and Clang on Linux (no gain, +8.6% size) stay off.
The decision made, tools/ci/lto-check.sh and its dispatch-only jobs go;
PERFORMANCE.md keeps the 2026-11-10 numbers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Windows, macOS and the web compile no gibus, so their licenses/ folder
leaves it out. The docs name everything a custom command is keyed by.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Twenty interleaved passes of the chart's benchmark for Reaktor's four
renderers: software 9.1 MB / 6.1%, direct3d11 57.2 MB / 9.1%, direct3d12
120.3 MB / 5.1%, opengl 68.9 MB / 5.0%. software's memory sits at
8.1-8.3 or 9.1-9.2 MB per run, before #139 as well (median 9.1 for both,
twelve paired passes). Interaction and idle memory again against 0.10.0,
twelve pairs and ten launches. Sizes and the modules table for the
link-time optimized build; LTO measured on GCC, Clang and Apple Clang in
CI, where it stays off. The LTO check runs only when dispatched.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GCC and Clang on Linux, Apple Clang on macOS: tests, shots and dumps,
sizes, and bench frame times taken in turn.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SDL_mslibc.c is empty with the C library, so SDL's /GL- on it only
clashed with the precompiled header. Nuklear's size flag is /Os, which
/O2 does not override with a warning the way /O1 does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reaktor and SDL are optimized as one program in a Release build. Without
it, SDL's software rasterizer ran up to 5% faster or slower as unrelated
code linked before it changed size; with it, the bench's software render
is 7-10% shorter than 0.10.0's and pixels are unchanged. Programs are
3-5% larger.
On by default with MSVC only, where it was measured. LTO objects link only
with the compiler that made them, so the packaged static libraries are
built with it off: tools/libreaktor-pkg.sh when it configures, and the
Windows release's separate library build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A frame drawn whole on the software renderer filled the page background,
then the panel, title bar and sidebar over almost all of it: about twice
the window's pixels per frame. Each large opaque rectangle now fills only
what no later opaque rectangle covers, since that one replaces those
pixels. Clips round inward, so a cover is never larger than what SDL
paints. Damaged frames and frames with fewer than two large opaque fills
are drawn as before.
Pixels and --a11y-dump are unchanged on every showcase page, both themes,
at scales 1, 1.1, 1.25, 1.5, 1.75 and 2, and on notepad and simple.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An idle window keeps no copy of its last frame; the next change draws
one full frame and partial frames follow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Twenty interleaved passes of the chart's benchmark (6 s with startup and
the 3-8 s steady state, 60 fps, pinned clock) for Reaktor's four
renderers and Electron 44.3.0: software 8.4 MB / 6.6%, direct3d11
57.7 MB / 12.5%, direct3d12 120.5 MB / 5.0%, opengl 69.2 MB / 5.8%,
Electron 155.2 MB / 20.7%. Flutter and Kotlin Multiplatform were not
rebuilt and keep their figures of 2026-10-24, dated as such in the chart
and the table.
Idle memory, ten launches each, taken in turn with 0.10.0: showcase
15.8 MB (12.9 on 0.10.0), notepad 11.0 (8.8), simple 7.3 (7.1), so the
quoted range is now 7-16 MB.
A new Interaction section: master against 0.10.0 on hover, slider drag,
typing and the wheel, twelve pairs each. A drawn frame takes 41-43% less
time, 20% less on the wheel.
PERFORMANCE.md drops figures from builds the code has left behind: the
four-platform tables of the single-executable build, the web module
sizes from before the CSS engine, the libdbus tray comparison.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The damage keys and the skip hash read the list before rounded fills
become masks; reaktor_damage_render masks once, after a frame proves to
draw and before any pass, the check pass included. command_read keys and
spans a command in one switch. Damage boxes are SDL_Rect, cut, joined and
tested through SDL's helpers; touches keeps its inclusive edge, and
nk_sdl_meets stays, as SDL_HasRectIntersectionFloat counts a shared edge.
The steppers of a property wash only where its field lights: one flag,
reaktor_property_live, for both. The manual says a new theme, icon or atlas
is redrawn where it changed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cache.GetItems walks the snapshot under its lock through
reaktor_snap_walk, so every item's parent is sent before it and each child
count matches the children sent. diff_tree finds the new node through an id
table like the snapshot's own, and a diff past REAKTOR_SNAP_DIFFS marks the
snapshot so reaktor_snap_structural_in reports a structural change, which
the bridges answer by invalidating the tree.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
reaktor_tray_check only sends ItemsPropertiesUpdated and reaktor_tray_open
only dispatches, so neither runs a queued .chosen callback in the middle of
a page build. Callbacks still run after dispatch, from reaktor_tray_event.
Closing the tray drops what was queued.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Nuklear marks the page read-only while a floater, an inline menu or a
picker is active, and the page's hover, tooltips and menubar switching
must still answer there. Only the spinbutton's own look follows Nuklear's
gate.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The image cache keys an icon's stroke as a struct nk_color and writes it
out with reaktor_hex(). The stroke width keeps its printed quantization:
rounding sw * 100 hands the rasterizer a different float at ties such as
0.125 or 1.625.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each texture the image cache, the corner masks and the font atlas create
gets a serial number in its properties, and image and text keys carry it
next to the pointer, so a texture made again at a freed address reads as
changed. The window's clear color joins the frame hash. Evicting or
clearing the image cache, rebuilding the font and restyling no longer set
must_draw; window events still do.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Where the damage path cannot apply (no software renderer, or a fractional
scale) the frame is hashed in one streaming pass, without keys or boxes.
Where it does, the frame hash folds the item hashes instead of hashing the
key buffer again.
The diff hands back the area it covers; the per-frame kind, rectangles and
share are locals of reaktor_damage_render; have_ref is !fresh; collected is
cleared once; reaktor_damage_add and collect close an item the same way;
scaled images are found by their recorded indices. The list grows with
reaktor_grow. Each run's vertex box is computed once and tested against
every rectangle, instead of once per rectangle.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rounded fills become masks once, right after the frame is built, so the
damage keys, text preparation and every pass see the same list.
reaktor_render(app, rects, n) is the one entry: n == 0 draws the whole
window, otherwise one SDL_RenderFillRects clears the rectangles before the
pass. nk_sdl_render_ex goes, and nk_sdl_frame_done keeps only nk_clear and
the frame time.
A frame whose commands changed but whose pixels would not is handled as a
skipped one: no render, no copy, no present.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A chosen item is recorded while gibus dispatches and its callback runs
once dispatch returns, so a callback that closes the tray or checks an
item no longer reenters the bus and the bookkeeping for that is gone.
Labels share reaktor_utf8_clean_dup, and errors nobody reads are NULL.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A cleaned copy is one call next to reaktor_utf8_clean. Notifications
use it, pass NULL for the session's error, and test the same define the
runtime does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
append_variant takes the type and signature, send_reply drops the message
it never read, and the bus address and connection pass NULL for errors
nobody reads. A diff carries the state and value it reports, so changes
are emitted without looking each node up again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hot_hover now answers no in a read-only window or a disabled block, as
Nuklear's own widgets do, so the property no longer checks by hand. The
menu's click, a field's drag rectangle and the picker's wheel use it too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Same facts in fewer words across README, CLAUDE.md, CONTRIBUTING,
DOCUMENTATION, FAQ, DEMO and NOTICE, and the claims that had drifted from
the code brought back in line:
- CI runs eleven console tests from tools/ci/tests.txt, plus the scripted
uitest, skiptest and damagetest; the Tests table lists the last two.
- Linux ARMv7 and RISC-V build on every pull request, emulated and allowed
to fail, not only on master.
- CONTRIBUTING runs the tests from tools/ci/tests.txt instead of an old list.
- The showcase is about 4,600 lines and notepad about 410.
- The shared library also ships as -macos-universal.
- SDL's GPU API is built only with REAKTOR_SHADERS.
- The architecture list names core/sdl and damage drawing.
- CLAUDE.md: --shot also hides partial redraws; damagetest catches them.
- PLAN.md is marked finished, with what has changed since.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
reaktor_text_prepare kept a pointer to each text command's string inside
Nuklear's command memory. Splicing a rounded fill before the draw appends
commands to that memory, and a reallocation freed the string, so the custom
draw shaped whatever the heap left there. On 32-bit Windows the damage check
caught it: the partial frame and the full redraw read the label differently.
The draw now keeps the shape entry looked up at prepare time.
The manual says how a custom command is recorded for skipping and damage.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The library file keeps the project's version, libreaktor.so.0.10.0, so the
SOVERSION no longer prefixes it; libreaktor.so.1 is the link to follow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Written by check-abi.sh on CI's Linux x86-64, arm64 and x86 machines; they
differ from the .so.0 ones only in the renamed launch field.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A frame whose draw commands equal the last presented one is skipped, and on
the software renderer a changed frame is redrawn only where it changed, for
every app. The launch field .skip_same_frames becomes .draw_every_frame,
which turns both off; bench sets it so it keeps measuring full frames.
The launch struct an app sees changed, so libreaktor's SOVERSION is now 1,
and the runtime package libreaktor0 becomes libreaktor1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With .skip_same_frames, a software frame at a whole-number scale now
redraws only the rectangles whose Nuklear commands changed. Each command
gets a key and a device-pixel box; the list is diffed against the last
drawn one and the changed boxes merged into at most four rectangles. The
frame is drawn into a target texture that keeps the last frame, as SDL
documents a window's back buffer does not, and copied to the window.
Anything that invalidates the window, a capture, a fractional scale or a
GPU renderer draws in full as before.
The test harness redraws every partial frame whole and compares pixels;
damagetest drives hovers, typing, popups, scrolling, toasts, focus,
tweens, a theme switch and scales 1, 2 and 1.25, with and without text
shaping. Shots and dumps match master on every tab in both themes.
Ryzen 5 4600H, showcase at 1100x680, 12 interleaved pairs: render -58% to
-61% per drawn frame, whole frames -42% to -46%, process CPU -9% (hover)
to -26% (slider drag).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Motion redraws only across a rectangle hot_push registered, so a widget
that lights where no hot rectangle lies changed only on some later frame.
Two causes:
- A spinbutton lit its whole field but registered only its steppers. The
field is now hot too, and a numeric property lights over all of it, as
the spinner does, except in a read-only window or a disabled block.
- Widgets that draw their own hover tested the pointer against bounds
that hot_push clips to the panel, so one cut off by a scroll lit while
the pointer was outside the panel. hot_hover tests against the same
clip; sliders, progress bars, steppers, spinners, list and tree rows,
menus and tooltips use it.
A hover probe over every interactive node on all tabs and scroll
positions found 5 such hovers; none remain. Pixels at rest are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An icon drawn in a built frame no longer formats an
"external/ionicons/...svg?stroke=...&sw=..." string to find its texture:
the image cache keys Ionicons on name, stroke color, width and size, and
builds the path only on a miss. Codepoints below 128 find their glyph
through a table filled at bake time instead of a binary search.
Pixels and accessibility dumps are unchanged on every showcase tab in both
themes. Software renderer, every frame built, 16 interleaved pairs on a
Ryzen 5 4600H: build time -16% to -22% for icons and -10% to -17% for
glyphs on Login and Buttons; whole frames on Buttons -4.5% and -2.3%.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The client moves to its own library, gibus (MIT, ported from minidbus),
under external/gibus. It drops SDL for pthreads, so the runtime links
threads where it builds gibus. Callers, the private export list, the test
and CI follow the rename.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A full audit of Reaktor's own sources: section banners, return-value and
parameter notes, and descriptions of what a function does are gone. What
stays records a library, OS or browser quirk, a threading or lifetime rule,
or a license. Two comments that still named libdbus are corrected. Code is
unchanged; the vendored nk_sdl3_renderer.h keeps its own comments.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A sender that leaves bytes the socket refused tells the polling thread to
watch for output too. The AT-SPI pump now waits without end instead of
waking five times a second, and rdbus_call no longer polls every 10 ms
while another thread reads.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Measured on the message format (MSVC /O2, median of 7, messages built
the way the callers build them):
- Walking a parsed or built message no longer validates what parsing or
building already did: stepping keeps the bounds and depth checks only.
GetChildren 17.9 to 4.9 us, the menu layout 19.3 to 6.9, the portal's
ReadAll 24.7 to 8.6.
- A variant's signature is checked once, and names skip the UTF-8 pass
their own rules already cover. A parse takes one allocation, with the
bytes 16-aligned after the message. A call header parses in 261 ns
where it took 451; GetChildren in 3.2 us where it took 4.7.
- Header names live in the message's own allocation, and values reserve
their room once: a call builds in 3 allocations, not 7 to 9, and in
28 to 38% less time.
- AT-SPI object paths are written with SDL_uitoa, the same bytes: a
50-child reply builds 36% faster.
The connection keeps queued messages in a ring and the handler list on
the stack, and sends straight from the message when nothing is queued.
A live test fills the queue past its 4096 messages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A private link to the include-only reaktor_rdbus put $<LINK_ONLY:...>
in the runtime's INTERFACE_LINK_LIBRARIES, which the shared library links
as it stands, and ninja refused the $.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Linux and the BSDs spoke D-Bus through libdbus for the AT-SPI bridge,
the tray and notifications, and the theme code loaded it by hand for
the portal's appearance settings. platform/dbus is a client ported to
C from minidbus (MIT; licenses/minidbus.txt): EXTERNAL authentication
over a Unix socket, the message format validated as the specification
asks, and calls, replies, signals, match rules, exported paths and
fallbacks, Peer and default introspection, as libdbus answered them.
It is built into the runtime, and the modules reach it through the
map's private section; nothing links libdbus, and SDL alone still opens
it where the system has it.
dbustest checks the message format everywhere, with hostile input and a
mutation loop, and on Linux and the BSDs runs a private dbus-daemon for
the connection; CI asks for that half with --require-bus.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two passes of ten runs on the documented builds, the default one for
software, direct3d11 and direct3d12 and the OpenGL one for opengl, taken
in turn with master's: the two read the same. The chart, the alt texts
and the manual's memory line follow; older figures beside them carry
their dates. Started through Git Bash, the runner reads about 3 MB less
private memory, so the doc says to run it from PowerShell.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A print page's build-only frames set the callback rate and never ran
the countdown that puts it back, so an idle app kept iterating at the
display's refresh. And a skipped tween frame in one window restored the
rate while another window still held a button. Build-only frames no
longer pace, and the rate comes back only when no window drags or
flings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SDL only queues draw calls, so a software frame's rasterizing was booked
as present. The runtime now flushes before the present timer, and the
docs and Diagnostics say what each number holds.
A skipped frame never reached nk_clear, so the next build's popups and
overlay never joined the list and combos stopped answering; it clears
now. Skipped frames also had no present to wait on, so a tween that
changed no pixel spun a core at about 390,000 frames a second. They now
follow the display's refresh, as a held mouse button does.
A software frame that opens by filling the whole window drops the clear
under it. A theme change forces the next frame to draw.
tests/skiptest.c covers both skip faults and runs in CI.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rpm job uploaded dist-pkg/*.rpm and dist-pkg-shared/*.rpm as two
paths, so upload-artifact kept both folders and the publish step found
two directories among the downloads: sha256sum refused them and 0.9.0
never published. The shared packages now move into dist-pkg before the
upload, which is one path and lands flat like the .deb artifacts.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
benchmark.svg and PERFORMANCE.md carry a new pass of Reaktor's arms at the
chart's standard (10 runs, 60 fps, steady state 3-8 s, quiet machine):
software 9.1 MB / 7.1%, direct3d11 57.3 MB / 11.4%, direct3d12 120.8 MB /
4.1%, opengl 69.0 MB / 6.4%; the other arms keep their pass of 2026-10-24,
and the chart says which is which. From default builds of this branch:
the four executables' sizes, the per-module sizes, LOCALE_EMBED's, the
static-CRT sizes in BENCHMARKS.md, and idle memory on Login, Diagnostics
and Translations, medians of ten launches.
An audit of every document against the branch found 24 statements the
code had left behind: the tray on Linux and the BSDs is Reaktor's own over
libdbus, so SDL's GTK tray never opens there and dbus-1 is linked for the
tray and notifications too; twelve submodules, nine modules, the Inspector
among them; toml-c inside libreaktor; the shared library's soname and
export map; -s splits the package in three, with the dependencies and
conflicts the packages declare; what REAKTOR_A11Y=OFF and REAKTOR_TRAY=OFF
now save; .file_opened unset means no drop target; find_package asks for
0.9; the shared tarballs' names in two workflow comments; and numbers
quoted as today's that were October's, re-measured or dated.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The package's version file keeps the minor, so the consumer example and
the two docs that quote it ask for 0.9; every CI job failed on 0.8.
toml-c, inside libreaktor since the settings moved to TOML, joins the
release notes' list.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
PERFORMANCE.md names what the antivirus adds to every process on the
benchmark machine, measured on bench: about 2.2 MB of the 8.9, with the
split and the rest of the ledger, so a reader on a machine without it can
subtract. DOCUMENTATION.md notes the OpenBSD spelling of the SDL runtime
package.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
One option replaces REAKTOR_SDL_D3D and REAKTOR_SDL_GL: a list of
direct3d11, direct3d12, opengl and opengles2, with commas or semicolons
between. Empty is the platform's default, direct3d11;direct3d12 on
Windows and nothing on Linux and the BSDs; none is software only. A word
that is not a renderer fails the configure, as does ON or OFF; a word a
platform cannot build is noted and ignored. macOS and the web keep what
they always built.
A cache from before keeps its renderers: the two old entries are read
once, turned into the list with a warning, and removed, so a build
directory holding REAKTOR_SDL_GL=ON does not lose OpenGL on its next
configure.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
SDL registers every window it creates as a drop target while a drop
event is enabled; on Windows that is COM's drag-and-drop, with clbcatq,
DataExchange and twinapi.appcore and three threads for the life of the
process. A launch with no .file_opened never reads SDL_EVENT_DROP_FILE,
so it disables the two drop events after SDL_Init, before any window.
Measured on bench (Ryzen 5 4600H, Windows 11 26300, software renderer):
window creation 26.7 to 21.9 ms, threads 5 to 2, modules 49 to 45,
0.2 to 0.5 MB less private; frame time unchanged. Pixels and
--a11y-dump identical across the showcase's tabs in both themes,
simple and notepad.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
cd0fb02 left `option(REAKTOR_NOTIFY"System notifications..." ON)`, which
defines a variable named with the description. A build directory from
before kept its REAKTOR_NOTIFY=ON; a clean configure had none, so
`if(NOT REAKTOR_NOTIFY)` linked the _none twin and every fresh build
shipped without notifications.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
OpenBSD takes a package name's version from its first dash followed by a
digit, so libreaktor-sdl3-0-0.8.0 was stem libreaktor-sdl3, version 0 and
a flavor that may not start with a digit: "bad package name". The SDL
runtime package drops the dash there; libreaktor0 has none.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
packages-specs(7) has no character classes: `libreaktor-shared-[0-9]*`
made pkg_create fail with "Unmatched [ in regex". `libreaktor-shared-*`
is its spelling for any version. NetBSD's -C keeps the glob; it is a
pkg_match pattern there.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
REAKTOR_SDL_GPU, on by default, builds SDL's GPU API and its gpu renderer:
Direct3D 12 on Windows, Metal on macOS, Vulkan on Linux and the BSDs, which
lets an application set its own shaders with SDL_CreateGPURenderState. It is
--renderer sdl-gpu, or the launch's .renderer; --renderer gpu keeps meaning a
native driver. Built in, it costs 184 KB on Windows and nothing at runtime.
The launch's .hdr, or --hdr on, makes the renderer with an scRGB output, and
secondary windows follow the main one. The software renderer, or one that
refuses it, is made SDR as before; so is SDL's gpu renderer on a display that
cannot show the linear swapchain, where it would otherwise draw everything
dark. The resize settle frame now shares the redraw switch.
Requested by PapayaPlayer (#104, items 2 and 3).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
metal on macOS; opengl, else direct3d12, else direct3d11 on Windows; opengl,
else opengles2 on Linux and the BSDs; opengles2 on the web. A driver left out
of the build is skipped. The documentation also says macOS builds OpenGL
whatever REAKTOR_SDL_GL says. Defaulting REAKTOR_SDL_GL on is still open.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SDL's software renderer shades a rectangle from its corners far slower than it
fills a solid one. A run is now solid bands, one for each level the ramp moves
by, on whole pixels so neighbors cannot round apart, and the long run lies
across the ramp so each band is drawn once. On the Buttons tab with every
button a gradient pill (23 pills, Windows, software renderer), a frame costs
1.06 ms more than flat pills where it cost 1.66 ms more; present is within
0.1 ms of flat. Flat fills are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
reaktor_fill_round and reaktor_fill_gradient lay out their corners and runs
through one routine; the button's per-state ramps need no separate flag; the
two background properties emit the gradient through one call. Pixels and
--a11y-dump unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
background and background-image take a two-stop linear-gradient() run to a
side or a multiple of 90deg; background-color leaves it in place, as in CSS.
reaktor_style carries it as gradient, gradient_from and gradient_to, and bg
falls back to the first stop where nothing draws it. A rounded gradient is the
corner masks cut into texel strips along the run, each tinted where it sits,
and multi-color runs between them, so its edge is as smooth as a solid fill's
on the software renderer. reaktor_fill_gradient draws one for an application.
Requested by PapayaPlayer (#104, item 1).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A thead background or --table close to the page or the rows was swapped for
the accent, so a quiet dark header came out bright. Every built-in sheet
leaves thead unset and --table at --links, which the check never caught, so
only a color the application chose was ever replaced. Requested by
PapayaPlayer (#104, item 5).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Windows sends enough events with a resize to draw twice, but the web page's
resize, and a platform that sends a single event, drew only once and left an
idle app showing the old layout until the next input. Requested by
PapayaPlayer (#104, item 4).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gradients in CSS, HDR output, SDL's GPU renderer, a settle frame after
a resize, and a list header that keeps the stylesheet's colour.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
reaktor_item_spacing, reaktor_text_color and reaktor_current_font answer what showcase read from ctx->style most. Showcase uses them; its pushes still point into ctx->style, so Nuklear's layout stays in the ABI.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
reaktor_tray_hide_on_minimize(app, 1) hides the main window when it is
minimized while the tray icon is open. reaktor_set_visible(app, 1) now
restores a minimized window, and the showcase's Show entry uses it.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The arm64 sysroot fetches its sets and packages from cdn.NetBSD.org with
ftp -V, which prints nothing when a request fails, so a dropped request
failed "Gather the arm64 sysroot" with no message, and bsd-arm64 then
found no cross-netbsd-arm64 artifact to download.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- Printing: the warm-up frames before a page is captured build without
rendering or presenting; only the capture frame draws. The PDF is
byte-identical, and a two-page export takes 359 to 344 ms of CPU.
- System preferences are read once on every path; load_theme no longer
reads them again after its caller has.
- A list row asks for its first cell once, for the accessible name and
the drawing, and a tree row no longer asks for its label a third time.
- The software renderer asks a texture's size once per draw command,
sets a glyph's color only when it changes, and puts the color and
blend back once per run instead of after every rectangle. Render step:
0.24 to 0.19 ms on Login, 0.97 to 0.85 ms on Buttons.
Pixels and --a11y-dump are unchanged.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
localetest now frees the codepoint array with SDL_free but never included
SDL's header, so clang and GCC rejected the implicit declaration on macOS,
NetBSD and the RISC-V cross-build while MSVC only warned. The tests get the
same /we4013 the applications have, so Windows catches it too.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- The atlas bake opens each font file once instead of once per size:
36.8 ms to 18.5 ms per bake, byte-identical output. A threaded bake
was faster still but kept 0.5-1.1 MB the heap never returned.
- The first window after the main one keeps its atlas image and glyph
tables; later windows and menus copy them instead of baking (about
11 ms to 0.3 ms each). Freed when the main window rebakes or quits.
- The first window is sized by the primary display's content scale;
reaktor_dpi_query_scale(NULL) always answered 1.0.
- Windows opened with reaktor_window_open are sized in window
coordinates, as popups already were, so a Retina Mac no longer
doubles them.
- Linux reads the portal's settings in one ReadAll call and stops asking
only when there is no portal or no ReadAll; reaktor_prefers() replaces
the two preference queries.
- The a11y tree finds a node through its hash index; sRGB to linear is a
table; a box reads its style once; the locale scan is one pass.
- PERFORMANCE.md, the chart and the README remeasured for Reaktor.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The engine parses every selector when the sheets load and a rule's
declarations the first time a query matches it. Loading the sheets takes
0.16 ms instead of 0.35, and the first round of queries on top 0.21 ms
instead of 0.33. A sheet can be added after the others: the role sheet is
appended with reaktor_style_add instead of loading every sheet again.
Diagnostics and the Inspector show where startup goes: the window, the
font atlas and the first frame, beside the stylesheets.
REAKTOR_SDL_D3D, on by default, builds SDL's Direct3D 11 and 12 renderers;
off, a program is 105 KB smaller and draws in software only. MSVC builds
with /Gw, so unused data goes as unused functions do: 24 KB off the small
programs, 96 KB off the showcase. DOCUMENTATION steers away from direct3d11,
whose CPU is in SDL's renderer or the driver, and the chart drops it.
Against the libcss build, measured in one session with the clock pinned,
old and new alternating: private memory is 0.16-0.28 MB lower everywhere,
direct3d11 frames a little faster, and the rest the same within noise.
PERFORMANCE.md carries today's sizes, memory, frame times and WARP, with
the frame-time method written down.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
core/css/css.c reads the stylesheets once into typed values and cascades
them as CSS does: !important, then specificity, then source order. It takes
var(), color-mix(in srgb, ...), em and rem, calc() over pixels, the @media
features Reaktor answers, @import at the top of a sheet, :not(), :enabled,
attribute selectors read as classes, descendant and child combinators, and
escapes. Rules are bucketed by the last compound of their selector, so a
query checks only the rules that could match. cssflat.c, LCUI's libcss and
yutil, and the lcui submodule go.
Screenshots of every showcase tab, notepad and simple, light and dark, with
normal and more contrast, are byte-identical to the libcss build, with
Water.css and with Simple.css; --a11y-dump differs only in the a11y struct's
size. Three values change to what CSS says: an unset background is
transparent black, an unset border color is the text's, and Simple.css's
:enabled:hover no longer reaches a disabled button. Against libcss, loading
the sheets takes 0.35 ms instead of 1.24 and a first query 0.32 us instead
of 4.4. csstest covers the cascade, values, @media and hostile sheets: import
loops and fan-out, var() that grows or expands too often, deep calc(), a sheet
left open, a huge file. 200,000 mutated sheets ran clean under AddressSanitizer.
Simplifications: dead state (redraw_always, sw_noaa, the hover-gap pin, a
muted note, an overwritten slider range, the font-baking blocks of the SDL
renderer, the a11y change index); REAKTOR_LAY_FILL for FILL_X | FILL_Y; one
helper each for flag parsing, capture runs, timings, paths from the working
directory, array growth, focus moves, tooltips, button presses, a11y slot
probes, UIA fragments and test strings; launchtest's notef() and last_node();
the output folder set once in CMake and a write-if-changed function; one test
list, tools/ci/tests.txt, for every workflow, so basetest and imagetest run.
The showcase drops its relaunch button, an ask() button is as wide as its
label, and build.sh takes a bare target. The docs follow, and PERFORMANCE.md
and the chart carry a new pass of all seven benchmark arms on one machine.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The runner holds the processor at full speed (-PinClock), adds the
steady-state CPU (-Steady) and the work of a frame drawn flat out
(-FlatOut), and no longer counts a process that started before the app
as its child: Windows reuses process ids.
PERFORMANCE.md, the chart and the figures quoted elsewhere are remeasured
on today's build: sizes, modules, memory, frame times and WARP, which now
reads as process CPU per frame.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
mojibake 0.5.0 takes its text as an mjb_text, and its line breaker reports
the byte position of each break, so reaktor_text_break no longer works it
out from the iterator's index. Its bidi characters still carry byte_offset
at their last byte, so levels are still matched in order. kb_text_shape
2.28f removes unaligned reads that were undefined behavior.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>