diff --git a/README.md b/README.md index 3c6202f..d227792 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ yourself. > ⚠️ **Reaktor is in active development**; breaking changes may occur.
How, and on what, is in [PERFORMANCE.md](docs/PERFORMANCE.md). diff --git a/docs/DOCUMENTATION.md b/docs/DOCUMENTATION.md index 286776a..27bda86 100644 --- a/docs/DOCUMENTATION.md +++ b/docs/DOCUMENTATION.md @@ -1403,7 +1403,7 @@ it. - **It needs no GPU.** Without one, Direct3D falls back to Microsoft's WARP emulation: drawing `bench` flat out, SDL's software renderer took 0.75 ms of CPU a frame where Direct3D on WARP took 1.78. -- **It uses the least memory**, 9.1 MB in `bench` against 57–120 MB on a GPU +- **It uses the least memory**, 8.8 MB in `bench` against 58–121 MB on a GPU renderer, most of that the graphics driver's. - **It starts fastest, and its cost does not depend on other programs** using the GPU. @@ -1440,8 +1440,8 @@ GPU renderer other than `sdl-gpu` keeps the linear output, which blends in linear light, so edges and text differ slightly from an SDR renderer. **Prefer `directx` or `direct3d12` to `direct3d11`.** Once running, on -2026-11-10, `direct3d11` took 9.1% of a core where `direct3d12` took 5.1% -and `opengl` 5.0%. On 2026-10-24 turning vsync off did not change that: the +2026-11-11, `direct3d11` took 11.7% of a core where `direct3d12` took 5.2% +and `opengl` 5.9%. On 2026-10-24 turning vsync off did not change that: the cost is in SDL's Direct3D 11 renderer or the driver, not in Reaktor's frame. Pick it only where Direct3D 12 will not start; `directx` does that by itself. diff --git a/docs/PERFORMANCE.md b/docs/PERFORMANCE.md index dfd4af1..1d6558f 100644 --- a/docs/PERFORMANCE.md +++ b/docs/PERFORMANCE.md @@ -24,10 +24,10 @@ and seven icons, 73,123 bytes. ## Against the others  The workload is [ShaftUI/Shaft](https://github.com/ShaftUI/Shaft)'s: 64 boxes @@ -39,27 +39,28 @@ not plotted: it does not link on Windows. | Arm | Memory | CPU, with startup | CPU, steady state | Measured | | --- | --- | --- | --- | --- | -| **Reaktor**, `software` | 9.1 MB | 7.7% | 6.1% | 2026-11-10 | -| **Reaktor**, `direct3d11` | 57.2 MB | 14.1% | 9.1% | 2026-11-10 | -| **Reaktor**, `direct3d12` | 120.3 MB | 11.1% | 5.1% | 2026-11-10 | -| **Reaktor**, `opengl` | 68.9 MB | 10.7% | 5.0% | 2026-11-10 | +| **Reaktor**, `software` | 8.8 MB | 7.0% | 6.0% | 2026-11-11 | +| **Reaktor**, `direct3d11` | 57.6 MB | 14.4% | 11.7% | 2026-11-11 | +| **Reaktor**, `direct3d12` | 120.5 MB | 10.6% | 5.2% | 2026-11-11 | +| **Reaktor**, `opengl` | 68.7 MB | 11.1% | 5.9% | 2026-11-11 | | Electron 44.3.0 | 155.2 MB | 36.1% | 20.7% | 2026-11-09 | | Flutter 3.47.8 | 132.7 MB | 38.8% | 15.3% | 2026-10-24 | | Kotlin Multiplatform | 668.7 MB | 51.5% | 29.4% | 2026-10-24 | -- **About a fourteenth of Flutter's memory and less than half its CPU**, with - startup or without, and about a seventieth of Kotlin Multiplatform's +- **About a fifteenth of Flutter's memory and less than half its CPU**, with + startup or without, and about a seventy-fifth of Kotlin Multiplatform's memory. - **Every Reaktor renderer takes less CPU than every other framework.** On a - GPU renderer its memory is mostly the graphics driver's: 57–120 MB, below + GPU renderer its memory is mostly the graphics driver's: 58–121 MB, below Flutter's 133. -- **Once running, `direct3d12` and `opengl` take 1.0–1.1 points less than - `software`; with startup, 3.0–3.4 more.** `direct3d11` takes the most of - the four either way. +- **Once running, `direct3d12` takes 0.8 points less than `software` and + `opengl` about the same; with startup, they take 3.6–4.1 more.** + `direct3d11` takes the most of the four either way. - **`software`'s memory lands on one of two levels.** Its runs read - 8.1–8.3 MB or 9.1–9.2 MB, and master before #139 does the same: twelve - passes of the two taken in turn gave each a median of 9.1 MB. The - previous pass, on 2026-11-09, read 8.4. + 8.1–8.3 MB or 9.1–9.2 MB, 16 of the 40 the lower, so the median falls + between. Master before #139 does the same: twelve passes of the two taken + in turn gave each a median of 9.1 MB. The passes of 2026-11-10 read 9.1, + those of 2026-11-09 8.4. - **About 2.2 MB of every arm is the antivirus.** Bitdefender puts two components into every process on this machine. Walked with VirtualQueryEx and a heap ledger on `bench` on 2026-11-04, they come to two private heaps @@ -80,17 +81,20 @@ not plotted: it does not link on Windows. ./benchmarks/run.ps1 -Targets