Files
Reaktor/docs/DEMO.md
T
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

5.3 KiB

The four programs

All four share runtime/ and core/; they differ in samples/ and in the modules they link. The showcase takes every module, notepad settings, popup menus and printing; bench and simple take none, so they show what the runtime costs alone. Without the accessibility module, a screen reader finds nothing in notepad, bench or simple.

Lines For
showcase ~4,600 Every widget and layer, both schemes, three languages, and how far the CSS reaches
notepad ~410 A text editor that opens, edits, searches and saves a file of any size
bench ~150 The workload the published figures measure, here and in four other frameworks
simple ~40 One button that closes the window
./build/showcase
./build/notepad somefile.txt
./build/bench --bench-seconds 6 --no-vsync
./build/simple

Showcase

It opens with a two-second splash: the mark, the name, Reaktor's and SDL's versions and what it is built on, fading in one after another. The web build shows its loading screen instead.

The Reaktor showcase under the system's titlebar in the dark scheme: the sidebar of pages with System chosen at its foot, and the Login page's card in a rounded panel

Ten pages in a sidebar (Login, Buttons, Inputs, Display, Layout, Popups, Animation, Styling, Translations, Diagnostics), the color scheme and the titlebar switch at its foot, and an icon in the tray. It is the reference for what the library draws, where its claims are tested rather than asserted:

  • Styling lays Simple.css over Water.css with a checkbox, and prints what each rule resolved to beside the widgets it painted.
  • Translations sets the opening of The Ugly Duckling in English, Polish and Japanese from the catalogs, beside a date, a number, one amount in three currencies and a count of ducklings, each written the way that language writes it. The Japanese is drawn by the Text module.
  • Popups opens floaters, toasts, windows of their own, menus and the tray, and can have the showcase ask before it closes.
  • Diagnostics shows the renderer, and live, where each frame's milliseconds and each megabyte went.
  • Animation sends five blocks to one stop, one of them instantly, draws all 31 easing curves through the function the widgets animate with, and plays the rest of NukAnim: a clip staggered across a grid under its debug timeline, motion along paths, oscillators, noise and a shake, one blend in five color spaces, and text arriving a glyph at a time.

Notepad

Notepad in the dark scheme under its native titlebar: a File and Help menu bar, the editor open on its own source, notepad.c, and a status line with the file name and its character count

A real editor in one file: a menu bar, a multiline field with line numbers that grows to fit any file, a find bar, printing and PDF export, a status line, the platform's open and save dialogs, and eight shortcuts. A page of widgets never has to answer what happens to a modified document, or where a menu's last item lands when its popup is a pixel short; this does.

Bench

The bench window under its native titlebar, drawn with --renderer direct3d11, which antialiases the edges: an eight-by-eight grid of rotating squares shading from blue at the top to pink at the bottom

Sixty-four rotating boxes, at the display's rate or flat out with --no-vsync, for --bench-seconds, then what the run cost, on stdout. Six seconds flat out on the Windows machine PERFORMANCE.md names:

size          800x600
frames        8095
fps           1349.2
ms_build      0.00
ms_render     0.43
ms_present    0.28
ms_per_frame  0.72
cpu_at_60fps  4.3
cpu_percent   97.1
private_mb    6.0

With --no-vsync, read cpu_at_60fps, not cpu_percent. On vsync, SDL_RenderPresent waits for the next vblank, and whether the wait is charged depends on whether SDL blocks or spins: the same 386 frames have read from 0.3% to 99.6% of a core. size is the drawing area, printed because four other frameworks in benchmarks/ draw the same picture. --boxes changes the workload; --fps holds it to a rate.

It is deliberately what the library is worst at. Everything else in PERFORMANCE.md counts frames, because nothing is drawn while nothing changes; an animation that never stops measures the drawing instead. Reaktor's three bars in the chart there come from this program, one per renderer.

Simple

Simple in the dark scheme under its native titlebar: one Close button centered in a small window

One centered button that closes the window, in about forty lines: the smallest application, and the one to start from.

Running one the same way twice

./build/showcase --tab 7 --theme dark --shot styling.bmp --a11y-dump styling.txt

--shot writes the window once it settles and quits; --a11y-dump writes every node's role, name, value, state and rectangle. Diff two dumps and anything that moved by a pixel shows. The other flags are in DOCUMENTATION.md.