Commit Graph
69 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 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 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 ee19706511 Performance: review corrections, idle memory with #137, 0.11 module sizes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 00:56:50 +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 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 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 3d9bdb295d PERFORMANCE: three apps static against shared
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 09:49:16 +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 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 e7a024b841 PERFORMANCE: what SDL's GPU API costs the software renderer
Built in, it makes SDL load Vulkan, its drivers and LLVM even when the
software renderer draws: a frame on the display 13.6-16.3 ms against
2.1-2.4 ms, and 63.1 MB private against 5.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 14:40:36 +01:00
adminandClaude Opus 5.5 d0fae747c8 Nuklear built for size
-Os (/O1 with MSVC) on nk_impl.c: the stripped shared libreaktor goes
from 1.88 MB to 1.74 MB on Linux x86-64, with no frame-time change past
the bench's own spread and every shot and dump byte-identical.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 13:17:27 +01:00
adminandClaude Opus 5.5 27bef86b50 PLAN.md: Phase 0 on a Linux desktop, 17.3%, no-go
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 10:33:32 +01:00
Roman ChojnackiandClaude Opus 5.5 913fa39b69 PERFORMANCE.md: the saving counted page by page, 20.2%
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 11:13:43 +01:00
Roman ChojnackiandClaude Opus 5.5 180c4b1904 PERFORMANCE.md: what a shared libreaktor would save, measured
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 10:13:34 +01: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 126a42597e Performance: drop the work-per-frame column
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-23 17:53:29 +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 eff48d8f13 Docs: one Windows machine, the one the numbers came from
PERFORMANCE.md listed it twice, once as a VirtualBox VM with no Direct3D 11
adapter, which it is not. DEMO.md pointed at that VM too.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-23 09:41:52 +02:00
Roman Chojnacki e1c22baff2 Merge remote-tracking branch 'origin/master' into css-token-guard 2026-10-22 23:47:08 +02:00
Roman ChojnackiandClaude Opus 5.5 14918d2163 PERFORMANCE.md: the CPU draws by default, and a GPU can
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 23:17:37 +02:00
Roman ChojnackiandClaude Opus 5.5 608ce8de26 Assets: the marker is looked for at most two folders above the program
Without a .reaktor-root beside it, a program climbed to the root of the drive looking for one, and started from the working directory when its own folder was unknown, so whoever could write a parent folder, or chose where it was launched from, could hand it stylesheets, fonts, icons and catalogs. The search now stops two folders up, enough for build/ in a checkout, and never uses the working directory, as the documentation already said. Further down, a program draws from its compiled-in look; every showcase page draws the same from build/.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 23:12:50 +02:00
Roman ChojnackiandClaude Opus 5.5 2ad7acc200 PERFORMANCE.md names the benchmark machine where the workload is described
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 22:47:10 +02:00
admin 663d85755b Update PERFORMANCE.md 2026-10-22 21:47:34 +02:00
admin 143c3dbcfe Update PERFORMANCE.md 2026-10-22 21:46:47 +02:00
admin adf7c002c1 Update PERFORMANCE.md 2026-10-22 21:46:22 +02:00
Roman ChojnackiandClaude Opus 5.5 f7b65703cb Benchmark: every arm from one pass, with steady-state CPU for all seven
Flutter 3.38.0, Electron 44.3.0 and Compose Multiplatform 1.12.0 were built
again and measured beside Reaktor's four renderers on the same laptop, with
the GPU idle. The steady-state column now covers all seven, CPU summed across
each app's process tree; the chart's CPU panel shows it.

| Arm | Memory | With startup | Steady |
| software | 9.5 MB | 8.6% | 6.0% |
| direct3d11 | 59.4 MB | 14.1% | 10.3% |
| direct3d12 | 122.3 MB | 11.8% | 5.0% |
| opengl | 70.1 MB | 11.6% | 5.0% |
| Flutter | 90.8 MB | 19.3% | 15.6% |
| Electron | 157.6 MB | 40.8% | 26.1% |
| Kotlin Multiplatform | 667.4 MB | 59.6% | 33.5% |

The CPU column is named for what it holds, the run with startup, and the
measurement notes say how each figure was taken.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 21:27:44 +02:00
Roman ChojnackiandClaude Opus 5.5 e8ac46460f Renderer guide in DOCUMENTATION and FAQ; direct3d12 in PERFORMANCE
- DOCUMENTATION's renderer section says why software is the default and lists
  the GPU renderers with their pros and cons; the FAQ asks whether an app
  should use one.
- PERFORMANCE gains a direct3d12 row (121.5 MB, 11.0%, 5.2% steady) and a
  seventh bar, names the benchmark machine correctly (a laptop, not a VM),
  and is shorter where it ran long.
- Binary sizes follow the Direct3D 12 renderer: 2.4 MB.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 19:46:23 +02:00
adminandClaude Opus 5.5 941783205b PERFORMANCE.md names the machine: a 4-core Ryzen 5 4600H VirtualBox VM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 19:31:36 +02:00
Roman ChojnackiandClaude Opus 5.5 6a0cc60d68 Benchmark re-run with the GPU idle, and a steady-state column
Reaktor's three rows were measured again with nothing else loading the GPU
(power state P8). Earlier GPU rows had shared it with another program, which
made Direct3D 11 and OpenGL miss 60 fps and spend 16-28% of a core waiting to
present. direct3d11 59.0 MB, 16.0%; opengl 69.9 MB, 11.2%; software keeps
8.9%, its re-run being within noise of it.

- A steady-state column: CPU from 3 s to 8 s, median of ten runs per
  renderer taken in turn, every run at 60 fps: software 7.2%, direct3d11
  12.3%, opengl 6.6%.
- Startup is called out: a run that draws for 0.2 s takes 0.16 s of CPU on
  software and 0.41-0.44 s on a GPU driver, which the 6-second run counts.
- A GPU renderer's CPU depends on what else uses the GPU.
- Chart, README alt text and the bench-versus-sampler note follow.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 19:09:19 +02:00
Roman ChojnackiandClaude Opus 5.5 ceeae331d9 PERFORMANCE.md: plainer wording for the benchmark notes
The 67.3% paragraph is written for a reader without the renderer's
vocabulary, and the comparison bullet names Kotlin Multiplatform as the
table does.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 14:32:41 +02:00
Roman ChojnackiandClaude Opus 5.5 13632a4ccc Opaque geometry drawn unblended on the software renderer; benchmark re-run
- SDL's software renderer blends a triangle through a surface of its own,
  so untextured triangles that are all opaque now go to it with blending
  off, as opaque rectangles already did. Pixels and a11y dumps are
  byte-identical on every showcase page in both themes.
- Reaktor's three benchmark rows re-measured from a fresh Release build
  with the submodules at their pinned commits: software 9.5 MB and 8.9% of
  a core (was 10.0 MB, 16.4%), direct3d11 60.0 MB, 13.9%, opengl 90.1 MB,
  12.8%. Table, chart, README alt text and the bench-versus-sampler note
  follow.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 14:08:46 +02:00
adminandClaude Opus 5.5 a7d2c76c8c Simple.css replaces Bamboo as the Styling page's second sheet
The Styling page now swaps in Simple.css (external/simplecss/simple.css),
which looks clearly different from Water: navy in light, amber in dark.
csstest flattens it in both schemes; packaging, the web build's licenses
and the docs name it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 09:36:04 +02:00
adminandClaude Opus 5.5 bdb12797d2 Water.css and Bamboo for the look; stylesheet and Inspector fixes
Water.css replaces tiny.css and Bamboo replaces simple.css. cssflat reads
@import, and drops a token too long for libcss or a value with a ';',
which crashed Picnic. reaktor.css maps the tokens Water lacks and no
longer overrides its hover.

A label's color token falls back when it vanishes on the page, an icon
moves to the edge before it is dropped, and a field filled like its card
takes the page's color. Buttons get .flat, for icon-only toolbar buttons.

The Inspector opens from Diagnostics, keeps its actions as flat icons
beside the tabs, and has room around its contents. Notepad's menu bar and
the Translations language row are centered and sized. Screenshots are
retaken.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 20:31:52 +02:00
adminandClaude Opus 5.5 e538cf74e8 Reaktor names, faster frames, services, list and splitter, a clearer tree
Names: applications see only reaktor_ names. include/reaktor/nuklear.h
aliases the Nuklear types, constants and calls the samples use, so values
mix freely with nk_*. The samples and public headers use them throughout;
colour and CENTRE are color and CENTER.

Speed: the web accessibility tree moves only the nodes out of place, the
style cache is a hash table with no size cap, wrapped labels keep their
line breaks, and screen-reader lookups in the snapshot are indexed.

Features: reaktor_file_dialog_open (open, many, save, folder, filters),
reaktor_ask, reaktor_timer and reaktor_post, settings with remembered
window geometry, reaktor_list (sheet-styled, only the visible rows, keys
move the selection), reaktor_splitter (drag or arrow keys), .tooltip,
PNG and JPEG through .src, a link's .url, and REAKTOR_CURSOR_*. The quit
confirmation is a reaktor_ask. A root box that fills is as wide as its
panel. Dead code is gone: css_field, unused App fields, duplicate helpers.

Tree: src/ is gone (core/internal.h), core/base/util.h, render/svg.c, the
tests in tests/, assets/css/reaktor.css. app.c hands input to input.c;
declare.c keeps the frame and boxes, controls.c and views.c the widgets.
NukAnim's switch is now nka_set_keep_at_rest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 09:10:21 +02:00
adminandClaude Opus 5.5 5700a61e60 Windows of their own, the BSD jobs, and a question before closing
A window opened with reaktor_window_open now runs as its own App: an input
queue that takes one change a frame, a wake of its own, its keys and dropped
files through the key hook and file_opened with its App, animations scoped
to it, and its accessibility tree served to UI Automation under its own
handle (NSAccessibility and AT-SPI still serve the main window only).
Closing one frees its layout, undo, icon cache and queue, and one closed
while its file picker is open is kept until the picker answers.
reaktor_set_title retitles the window whose App it gets, and a theme set
from any window applies to every window.

Nuklear's own rounded fills are swapped for masks once the command list is
built, so fill anti-aliasing stays off on every renderer without jagged
corners on the GPU ones. GTK's setlocale under the tray is undone,
stylesheets parse under the C numeric locale, and cssflat reads and writes
numbers and colors without the locale, clamping NaN and huge channels. A
font is checked table by table before stb_truetype sees it, and a --font
that cannot be read falls back to Aileron. A missing icon draws as nothing
rather than a white square, and an icon-only button draws its icon through
its CSS look. On the web, the page's key event no longer takes the event
type every wake pushes.

The BSD jobs: SDL's dlopen notes are left out on the BSDs, as OpenBSD
refuses a program whose note segment passes 1 KB; libm is linked into every
target on Unix rather than plutovg alone; and the smoke run picks its video
driver with the new --video flag instead of an environment variable.

.confirm_close and reaktor_set_confirm_close ask a question in a modal
floater, with Cancel and Quit, before a quit that closing could refuse,
bringing a minimized window back to ask it; the showcase's Popups page turns
it on. The sidebar takes copy-outline for Layout, chatbubble-outline for
Popups and color-fill-outline for Styling. Comments are trimmed again to the
ones that guard a trap, the screenshots are retaken, and PERFORMANCE.md's
module sizes and UI Automation count are measured again.

Verified: the seven tests pass, the 24 launchtest hold probes match the
last run, and new launchtest modes cover a window's keys, drops, animation,
title, theme, wakes, one change a frame, a drag, 200 open-and-close cycles,
its picker and a close under it, and the question both answered and
canceled. Each step was diffed against the previous sweep of every page in
both themes; the last differs only by the Popups page's new section and the
Diagnostics page's live numbers, and the accessibility-off build draws
byte-identical pixels and dumps. The web build passes its typing harness
and the wake, floater and toast checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 13:44:13 +02:00
adminandClaude Opus 5.5 0de1f814aa Layers, a tray and a sidebar
An application now owns main and makes one call, launchApp, declared in
include/reaktor/launch.h with its hooks (page, start, key, closing, stop,
file_opened) and the quit reasons platform/lifecycle reports: the window, the
app, the console, a signal, the session.

Above the page sit floaters, dialogs inside the main window whose modal kind
holds everything under it, and toasts. reaktor_window_open opens real windows
with their own renderer, and reaktor_tray_open puts the icon in the system
tray with a menu; SDL's tray is built again for it. reaktor_sidebar and
reaktor_tabs share one spec. The showcase moves its pages into a sidebar, with
the scheme and the titlebar switch at its foot, around a rounded panel, and
its tray menu shows the window, sends a toast and picks the theme.

Along the way: the icon cache gives up its stalest slot instead of drawing
white squares once full; a toast honors each side's padding; the click that
activates a window lands everywhere but macOS; cssflat works out
color-mix(), which reaktor.css uses for stronger light hovers and a tinted
current sidebar entry; the web link reads its asset list from a response
file, which had outgrown cmd.exe. Comments are cut to the few that guard a
trap, and every Markdown file is rewritten, DOCUMENTATION.md with a catalogue
of every widget, container, layer and helper.

Verified: the seven tests and lt3 pass, and the 24 launchtest hold probes give
their expected results. Every page in both themes was reviewed by eye and
diffed against the last baseline's accessibility dump, which lost no node.
The web build was captured on four phone configurations, with the Android
typing harness passing 62 of 62 checks; the tray menu, toasts and secondary
windows were driven through Win32 and UI Automation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 01:30:51 +02:00
adminandClaude Opus 5 1a2b19110e A tap keeps the keyboard it just opened
On Android, tapping a text field opened the on-screen keyboard, closed it,
opened it again, and then typing produced nothing. The page was fighting the
module for the canvas: tools/shell.html focused the canvas on mousedown so SDL
would get keys, and on a touch device the compatibility mousedown arrives after
pointerup - by which point keyboard_web.c has focused the hidden input and the
keyboard has come up. The shell took it back, the keyboard went down, and the
next frame's reaktor_web_keys_wants asked for it again. Whichever of the two
held focus when typing started decided whether anything landed, and with the
canvas holding it Android sends no keypress. SDL never calls focus() itself,
only reads it, so the page was the only thing taking it.

The canvas focus moves into the module that already owns the canvas and the
decision of who should hold the keyboard, and skips itself while the field has
it. The shell now has no focus code at all, which is the point: every embedder
writes that handler for the same reason, and the rule travels with the module
rather than with a copied page.

?keylog is what would have found this without reading anything: a page loaded
with it logs every pointer, touch, mouse, focus, key, beforeinput and
composition event, with the active element on each line, the viewport height
as the keyboard comes and goes, and a timestamp. It lives in tools/keylog.js
and is fetched only when asked for, so the shell stays a page rather than a
debugger.

A clean-up pass followed, and moved most of this: the overlay out of the
template and behind pointer-events, the focus policy into the module, five
copied listener registrations into one, a 250 ms poll deleted in favour of the
focus events already logged, and the log's own rendering batched to a frame so
it stops charging its reflows to the latency it is there to measure.

The README links Avalonia, Shaft and Freya where it names them, says what a
stub module actually costs rather than implying nothing changes, names
build-wasm.ps1 for Windows, and loses about a quarter of Features. PERFORMANCE
loses 81 words of hedging from the benchmark, size, memory and CPU sections,
with every figure and machine unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 10:05:13 +02:00
adminandClaude Opus 5 458d11aa49 Text past Latin-1, and the showcase in three languages
Two optional modules, each an interface library with a _none twin and a
REAKTOR_<NAME> option that defaults on, so an application that wants neither
links neither.

Locale reads a catalog per language from assets/locale, or compiles them in
with REAKTOR_LOCALE_EMBED: key = value lines, gettext plural rules, and
numbers, money and dates written the way each catalog says. The atlas bakes
what the catalogs use that Aileron has, and --lang picks the language.

Text draws what the atlas cannot. A string with any character the atlas lacks
is measured and drawn by core/text/text.c instead of Nuklear: direction by
mojibake's bidirectional algorithm, shaping by kb_text_shape, glyphs from the
first font that has them, rasterized at the size they are drawn, and lines
broken by UAX #14. Both libraries come in as submodules. M PLUS 1p is vendored
with its OFL notice for the showcase's Japanese, and --font-fallback adds more.

The showcase gains a Translations page: the opening of The Ugly Duckling in
English, Polish and Japanese, beside a date, a number, money in three
currencies and a plural count, each formatted the way that language writes it.

A clean-up pass followed: shared helpers for what was duplicated, and comments
cut to the few one-liners that guard against a bug. Screenshots and
--a11y-dump of all ten tabs, of Polish and Japanese, and of a right-to-left
sample were compared before and after it and are byte-identical. The seven
tests pass, localetest and texttest among them, and the native and
WebAssembly builds both link.

The docs follow. DOCUMENTATION.md covers both modules and the formatting keys,
DEMO.md shows each of the four applications, benchmarks/README.md becomes
BENCHMARKS.md, PERFORMANCE.md drops the per-machine CPU column and the history
of the old chart, and the GitHub Pages workflow is added. The showcase and
bench windows are titled Showcase and Bench, as notepad and simple already were.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 22:01:24 +02:00
Roman ChojnackiandClaude Opus 5 ae6eb26ba7 The software rasterizer was not the expensive part
A panel background arrived at SDL as two textured, alpha-blended triangles
covering the window, because nk_convert flattens every shape to triangles and
nk_font_atlas_end points tex_null at the atlas. A GPU does not care. A CPU
rasterizer pays for all three words. The same coverage, measured three ways:
16.38 ms textured and blended, 6.95 ms untextured, 0.12 ms as a fill.

So the renderer now recognises what it is being asked for. Six indices, no
texture and one color across all of them is an axis-aligned quad, and an
axis-aligned quad is a fill. Opaque fills skip the blend, because source-over
with an alpha of one is the source and the read-modify-write buys nothing.
Both are software-only: hardware draws triangles for free, and its output
stays identical to the bit.

A frame of the benchmark goes from 11.48 ms to 2.12 ms, an empty window from
8.06 ms to 0.54 ms, and PERFORMANCE.md's software bar from 67.3% of a core to
16.4% - under Flutter's 16.6%, at a ninth of its memory. The chart, the table
and the paragraph that explained why a CPU rasterizer should be the most
expensive thing in it are all updated from one fresh run.ps1 pass.

The test cannot match a rounded rect or an antialiased edge, because Nuklear
feathers those into more geometry than six indices. Fills thinner than two
pixels keep their blend: a one pixel rule lands a shade differently without
it, which the separators on the Buttons page showed as eleven thousand pixels
off by sixteen, and they cost nothing to draw either way.

Verified against pixels rather than reasoning. Four showcase pages, both
renderers: direct3d11 bit-identical, software within one least significant bit
on at most 0.3% of pixels, and every a11y dump unchanged.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0122RRMSnVSpaux9Fw1yb2qi
2026-09-15 10:46:57 +02:00
Roman ChojnackiandClaude Opus 5 85a5011306 The benchmark grows a POSIX runner, and Shaft leaves the chart
Shaft's two bars were never measured here. They were read off its README,
taken on an M1 Max with no denominator named for the CPU column, and a
caption that says "on the same machine" cannot carry them. They come out.
PERFORMANCE.md now credits ShaftUI/Shaft for the workload instead, which is
where the 64 rotating boxes came from, and says plainly why its own figures
are not plotted.

run.sh is run.ps1's other half: same arms, same columns, same medians, flags
instead of parameters. It walks the process tree with ps, reads processor
time out of /proc on Linux because Linux's ps rounds TIME to the second, and
takes wall time through perl's Time::HiRes. Its memory is RSS and run.ps1's
is private bytes, so the two do not mix; that is said in both the script and
the README.

Two of the three things stopping the Shaft arm on Windows turned out to be
this machine rather than Shaft, and both now have fixes in the README: the
build wants a developer shell, and it wants git told through the environment
not to attempt symlinks, which is the one place SwiftPM cannot append its
own core.symlinks = true afterwards. Past those it compiles everything and
stops at the link, on SwiftSDL3 0.1.6's missing joystick sources. That is
reproducible today from a non-elevated shell.

Every arm directory carries a -bench suffix now. One of them has to, because
SwiftPM takes a root package's identity from its directory name and a Swift
package called shaft collides with the Shaft it depends on; the other three
follow so the listing reads the same way down its length.

setup.ps1 also retitles the Flutter window. flutter create names it after
the package, so that arm came up called reaktor_bench while every other one
names the framework doing the drawing.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0122RRMSnVSpaux9Fw1yb2qi
2026-09-15 09:35:56 +02:00
Roman ChojnackiandClaude Opus 5 223b184c84 The CPU notes say the same thing in fewer lines
The three paragraphs under the frame-time table lost the asides without losing
a number, and the WARP figure now says which machine it came from, since the
file describes two.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xoc8WZkCMEAjjKibbf7zfi
2026-09-11 14:23:30 +02:00