135 Commits
Author SHA1 Message Date
Roman ChojnackiandClaude Opus 5.5 d5df2d54e8 Performance: the chart's benchmark re-measured in forty passes
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>
2026-11-11 17:18:38 +01:00
Roman ChojnackiandClaude Opus 5.5 f01e11d17e Build: link-time optimization on with Apple Clang; drop the LTO comparison
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>
2026-11-11 10:09:20 +01:00
Roman ChojnackiandClaude Opus 5.5 073e5444a4 Licenses: gibus's only where gibus is built; custom commands as they are keyed
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>
2026-11-11 09:44:30 +01:00
Roman ChojnackiandClaude Opus 5.5 90ffae56ee Performance: re-measured with the overdraw cut and link-time optimization
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>
2026-11-10 21:36:28 +01:00
Roman ChojnackiandClaude Opus 5.5 5c3e22687a Build: link-time optimization with MSVC, REAKTOR_LTO
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>
2026-11-10 17:46:12 +01:00
Roman ChojnackiandClaude Opus 5.5 56a3463c98 Render: software fills skip what later opaque fills cover
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>
2026-11-10 14:22:16 +01:00
Roman ChojnackiandClaude Opus 5.5 9619e3f69b Release 0.11.0
The BSD packages no longer need the dbus package: gibus talks to the bus
itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 01:23:08 +01:00
Roman ChojnackiandClaude Opus 5.5 90614340ec Performance: re-measured for 0.11.0
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>
2026-11-09 20:21:51 +01:00
Roman ChojnackiandClaude Opus 5.5 66e2d9a0ae Render: mask only frames that draw, one switch per command, SDL rects
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>
2026-11-09 18:16:36 +01:00
Roman ChojnackiandClaude Opus 5.5 be028beec5 Docs: tighter, and current with master
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>
2026-11-09 16:32:35 +01:00
Roman ChojnackiandClaude Opus 5.5 54e0a01b27 Text: draw shaped text from its shape entry, not the command's string
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>
2026-11-09 15:21:43 +01:00
Roman ChojnackiandClaude Opus 5.5 b5bbe962ed Skip unchanged frames by default
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>
2026-11-09 14:23:07 +01:00
Roman ChojnackiandClaude Opus 5.5 b614363b6d Software: redraw only where the commands changed
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>
2026-11-09 13:41:33 +01:00
Roman ChojnackiandClaude Opus 5.5 56f853fd0e D-Bus: take gibus as a submodule in place of platform/dbus
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>
2026-11-09 10:25:12 +01:00
Roman ChojnackiandClaude Opus 5.5 7c8fdb6732 D-Bus without libdbus: platform/dbus, a client of Reaktor's own
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>
2026-11-07 16:11:59 +01:00
Roman ChojnackiandClaude Opus 5.5 721b848e8b Reaktor 0.10.0
find_package asks for 0.10, and the benchmark rows are 0.10.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 13:52:24 +01:00
Roman ChojnackiandClaude Opus 5.5 5d83c7e8e4 Performance: Reaktor's arms re-measured on 2026-11-07
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>
2026-11-07 13:38:44 +01:00
Roman ChojnackiandClaude Opus 5.5 6066f21306 Timing that names the rasterizing, and skipped frames that stay clean and paced
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>
2026-11-07 03:21:55 +01:00
Roman ChojnackiandClaude Fable 5.1 ce3269e2f0 Docs for 0.9.0: the chart and every number re-measured, and what the audit found stale
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>
2026-11-04 15:10:13 +01:00
Roman ChojnackiandClaude Fable 5.1 d970a56858 Version 0.9.0: find_package asks for 0.9, and the notes list toml-c
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>
2026-11-04 14:15:05 +01:00
Roman ChojnackiandClaude Fable 5.1 8af61f7497 Reaktor 0.9.0
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-04 14:00:40 +01:00
Roman ChojnackiandClaude Fable 5.1 09ddd61657 Docs: Bitdefender's share of the Windows numbers; libreaktor-sdl3 on OpenBSD
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>
2026-11-04 13:35:36 +01:00
Roman ChojnackiandClaude Fable 5.1 3c0c9b5d23 REAKTOR_RENDERERS lists the renderers built, in --renderer's words
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>
2026-11-04 13:35:36 +01:00
adminandClaude Opus 5.5 54ef9b810a Docs: the shared library, its option and its packages
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 09:44:51 +01:00
adminandClaude Opus 5.5 0c88ad0b67 Review: rerun a crash under its wrapper, and drop what nothing needs
check-libreaktor.sh reran a crash in gdb or lldb without the -w
wrapper, so a hang lost its timeout. The quit-reason logs and the
REAKTOR_SDL_GPU shim go (it never shipped under that name), check-abi.sh
reads no CC, and the shared comments say less.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 09:38:18 +01:00
admin 056a3ea3b8 Merge remote-tracking branch 'origin/master' into shared-proto
# Conflicts:
#	tools/libreaktor-pkg.sh
2026-11-03 23:45:14 +01:00
adminandClaude Opus 5.5 244efd2e4b Tray: the D-Bus path on the BSDs too, and no SDL tray without dbus-1
FreeBSD, OpenBSD and NetBSD take the same StatusNotifierItem path as Linux;
their CI package lists and arm64 sysroots already carry dbus. A Linux or BSD
build without dbus-1 now has no tray instead of falling back to SDL's and GTK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 15:38:40 +01:00
adminandClaude Opus 5.5 cd0fb02237 Tray: StatusNotifierItem and dbusmenu over libdbus on Linux and the BSDs
SDL's tray there loads AppIndicator, dbusmenu-gtk3 and GTK 3, which took the
showcase from 57 mapped libraries to 110 and its tray open to 79-133 ms. The
tray is now an org.kde.StatusNotifierItem with a com.canonical.dbusmenu menu
on a private session-bus connection: 57 libraries, 7-23 ms. A thread waits on
the bus socket and wakes the frame loop, which reads and answers. With no
watcher on the bus reaktor_tray_open answers 0. Windows, macOS and builds
without dbus-1 keep SDL's tray.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 15:37:37 +01:00
adminandClaude Opus 5.5 97f20682de REAKTOR_SDL_GPU is REAKTOR_SHADERS
Named after what it is for: an application's own shaders, through SDL's
GPU API and --renderer sdl-gpu. OpenGL, Direct3D and Metal never needed
it. The old name is still read once, with a warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 14:50:20 +01:00
adminandClaude Opus 5.5 c0bc5ea61c SDL's GPU API is opt-in: REAKTOR_SDL_GPU defaults to OFF
The software renderer is the default, and the GPU API is 291 KB of the
shared SDL on Linux. --renderer sdl-gpu without it falls back like any
renderer that will not start. Every shot and dump is byte-identical.
The BSD build cache key moves on, since a cached CMakeCache would keep
the old default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 14:19:32 +01:00
adminandClaude Opus 5.5 1245b7328a Settings: TOML through toml-c instead of INI through ini.h
settings.conf becomes settings.toml, one quoted key and string per line,
read by toml-c (MIT, a maintained fork of tomlc99) and written by the
runtime. The mglibs submodule goes, with ini.h's license.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 12:15:03 +01:00
Roman ChojnackiandClaude Opus 5.5 2c904f245d Renderer: --renderer sdl-gpu for application shaders, and an HDR output
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>
2026-11-01 19:10:59 +01:00
Roman ChojnackiandClaude Opus 5.5 929519a168 Renderer: --renderer gpu picks a native GPU driver for each platform
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>
2026-11-01 19:10:50 +01:00
Roman ChojnackiandClaude Opus 5.5 1ea440438f CSS: linear-gradient() fills buttons and a slider's filled part
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>
2026-11-01 16:10:22 +01:00
Roman ChojnackiandClaude Opus 5.5 6557e1dbbe List: the header row is the sheet's color as written
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>
2026-11-01 15:57:27 +01:00
Roman ChojnackiandClaude Opus 5.5 5928f9a6b0 Style read by three calls: item spacing, text color, current font
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>
2026-10-24 23:10:20 +02:00
Roman ChojnackiandClaude Opus 5.5 23ffcba28f Tray: minimizing can hide the window there; showing it again restores it
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>
2026-10-24 22:15:48 +02:00
Roman ChojnackiandClaude Opus 5.5 66129d3bc7 Atlas: each font opened once, kept for later windows; DPI, Retina and portal fixes
- 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>
2026-10-24 16:33:23 +02:00
Roman ChojnackiandClaude Opus 5.5 f1404b4193 CSS reads declarations on first match; startup timings; D3D switch and /Gw
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>
2026-10-24 11:59:03 +02:00
Roman ChojnackiandClaude Opus 5.5 dffcce22d5 CSS: Reaktor's own engine replaces libcss, and a pass of simplifications
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>
2026-10-24 02:37:13 +02:00
Roman ChojnackiandClaude Opus 5.5 7bf48d453a Version 0.8.0: find_package asks for 0.8, and the notes list FreeType
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-23 18:46:20 +02:00
Roman ChojnackiandClaude Opus 5.5 ca3f1fc9a7 Version 0.8.0
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-23 18:35:52 +02:00
Roman ChojnackiandClaude Opus 5.5 646ef493f4 Performance: today's numbers, a pinned clock and work per frame
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>
2026-10-23 15:04:09 +02:00
Roman ChojnackiandClaude Opus 5.5 d45b73c8c1 Submodules: mojibake 0.5.0, kb_text_shape 2.28g
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>
2026-10-23 10:22:14 +02:00
Roman Chojnacki 9f4eefaa07 Merge remote-tracking branch 'origin/master' into drop-pdfgen
# Conflicts:
#	.gitmodules
#	CMakeLists.txt
#	docs/NOTICE.md
2026-10-23 09:56:45 +02:00
Roman ChojnackiandClaude Opus 5.5 36d4a9c9c5 Print: Reaktor writes its PDFs; PDFGen goes
A PDF here is a JPEG per page and the objects that frame it, so print.c
writes them itself: the same pages, images and info, without the font and
transparency states PDFGen added to every page. The creation date is UTC,
where PDFGen wrote local time marked as UTC, and a title past ASCII is
UTF-16.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-23 09:09:07 +02:00
Roman ChojnackiandClaude Opus 5.5 67b966ff3a Docs: FreeType in NOTICE, the font path in DOCUMENTATION
NOTICE gains FreeType's row and the credit its license asks for, and loses
stb_truetype. DOCUMENTATION drops the Nuklear traps that went with its font
baking. A comment in cssflat.c no longer holds the two characters that open
one.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-23 08:35:37 +02:00
Roman ChojnackiandClaude Opus 5.5 2d982889fc Simplify the unmerged changes and fix two of them
The tree's jump to a parent checks the parent against the tree's count, not
the list's. A font's name table is checked in reaktor_font_valid, before
Nuklear reads it, in place of the late check in text.c.

cssflat.c checks every token with one token_ok, frees in one place in
emit_one, and drops unresolved variables once. UTF-8 cleaning uses SDL's
decoder. The file dialog flag becomes file_busy, freed by reaktor_app_free.
urltest becomes basetest and holds the UTF-8 checks.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 23:47:08 +02:00
Roman ChojnackiandClaude Opus 5.5 dc62c39da2 Fonts: a name record past the end of the file is not read
The Text module copied a fallback font's name from wherever its name table pointed, up to 64 KB past the font's data, since reaktor_font_valid checks only the table directory. The string is now checked to lie inside the file, and the name falls back to the file's own name otherwise. With AddressSanitizer, a font whose English name record points past its end crashed texttest on master and loads cleanly now. The documentation says plainly that fonts should come from a trusted source.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 23:20:31 +02:00
Roman ChojnackiandClaude Opus 5.5 eb7fb5f69d Links open only http, https and mailto, unless the link names more
A link handed its URL straight to SDL_OpenURL, which on Windows opens anything: a file: URL runs a program, a share path sends the user's network credentials, a registered protocol reaches whatever handles it. An app showing links from documents or user content let that content do so. reaktor_link now opens http, https and mailto, plus the schemes its .schemes lists, as "file,ftp", and logs anything else. urltest covers the schemes, drive and share paths, and blank or missing schemes.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 23:15:06 +02:00