diff --git a/benchmarks/debounce-queue-2026-10-03/macos-26.txt b/benchmarks/debounce-queue-2026-10-03/macos-26.txt new file mode 100644 index 000000000..bab8b2dc7 --- /dev/null +++ b/benchmarks/debounce-queue-2026-10-03/macos-26.txt @@ -0,0 +1,14 @@ +Java openjdk 25.0.4.1 2026-08-18 LTS +Platform Darwin 25.6.0 arm64; logical CPUs 3 +mode=upstream size=1 polls=2050320 worker_cpu_ms=218.517 wall_ms=250.000 worker_allocated_bytes=65610240 +mode=wait size=1 polls=24 worker_cpu_ms=1.116 wall_ms=250.103 worker_allocated_bytes=768 +mode=upstream size=1 polls=2641880 worker_cpu_ms=247.157 wall_ms=250.000 worker_allocated_bytes=84540160 +mode=wait size=1 polls=26 worker_cpu_ms=0.873 wall_ms=258.012 worker_allocated_bytes=832 +mode=upstream size=1 polls=2502067 worker_cpu_ms=248.481 wall_ms=250.000 worker_allocated_bytes=80066144 +mode=wait size=1 polls=22 worker_cpu_ms=0.693 wall_ms=252.426 worker_allocated_bytes=704 +mode=upstream size=64 polls=1073260 worker_cpu_ms=249.930 wall_ms=250.000 worker_allocated_bytes=34344320 +mode=wait size=64 polls=21 worker_cpu_ms=0.624 wall_ms=251.431 worker_allocated_bytes=672 +mode=upstream size=64 polls=1117775 worker_cpu_ms=248.519 wall_ms=250.000 worker_allocated_bytes=35768800 +mode=wait size=64 polls=66 worker_cpu_ms=1.172 wall_ms=252.401 worker_allocated_bytes=2112 +mode=upstream size=64 polls=1017233 worker_cpu_ms=248.550 wall_ms=250.000 worker_allocated_bytes=32551456 +mode=wait size=64 polls=74 worker_cpu_ms=1.154 wall_ms=250.207 worker_allocated_bytes=2368 diff --git a/benchmarks/debounce-queue-2026-10-03/ubuntu-latest.txt b/benchmarks/debounce-queue-2026-10-03/ubuntu-latest.txt new file mode 100644 index 000000000..d32894d13 --- /dev/null +++ b/benchmarks/debounce-queue-2026-10-03/ubuntu-latest.txt @@ -0,0 +1,14 @@ +Java openjdk 25.0.4.1 2026-08-18 LTS +Platform Linux 6.17.0-1022-azure x86_64; logical CPUs 4 +mode=upstream size=1 polls=3147912 worker_cpu_ms=248.446 wall_ms=250.000 worker_allocated_bytes=100733184 +mode=wait size=1 polls=234 worker_cpu_ms=3.085 wall_ms=250.068 worker_allocated_bytes=7488 +mode=upstream size=1 polls=3108002 worker_cpu_ms=249.985 wall_ms=250.000 worker_allocated_bytes=99456064 +mode=wait size=1 polls=235 worker_cpu_ms=2.960 wall_ms=250.088 worker_allocated_bytes=7520 +mode=upstream size=1 polls=3073051 worker_cpu_ms=248.404 wall_ms=250.000 worker_allocated_bytes=98337632 +mode=wait size=1 polls=235 worker_cpu_ms=2.904 wall_ms=250.067 worker_allocated_bytes=7520 +mode=upstream size=64 polls=999765 worker_cpu_ms=248.680 wall_ms=250.000 worker_allocated_bytes=31992480 +mode=wait size=64 polls=235 worker_cpu_ms=2.887 wall_ms=250.067 worker_allocated_bytes=7520 +mode=upstream size=64 polls=999096 worker_cpu_ms=250.000 wall_ms=250.000 worker_allocated_bytes=31971072 +mode=wait size=64 polls=234 worker_cpu_ms=2.890 wall_ms=250.068 worker_allocated_bytes=7488 +mode=upstream size=64 polls=992373 worker_cpu_ms=249.987 wall_ms=250.000 worker_allocated_bytes=31755936 +mode=wait size=64 polls=234 worker_cpu_ms=2.891 wall_ms=250.068 worker_allocated_bytes=7488 diff --git a/benchmarks/debounce-queue-2026-10-03/windows-latest.txt b/benchmarks/debounce-queue-2026-10-03/windows-latest.txt new file mode 100644 index 000000000..26d6f67f5 --- /dev/null +++ b/benchmarks/debounce-queue-2026-10-03/windows-latest.txt @@ -0,0 +1,14 @@ +Java openjdk 25.0.4.1 2026-08-18 LTS +Platform Windows 2025Server AMD64; logical CPUs 4 +mode=upstream size=1 polls=3016566 worker_cpu_ms=234.375 wall_ms=250.000 worker_allocated_bytes=96530112 +mode=wait size=1 polls=173 worker_cpu_ms=0.000 wall_ms=250.006 worker_allocated_bytes=5536 +mode=upstream size=1 polls=2991508 worker_cpu_ms=250.000 wall_ms=250.000 worker_allocated_bytes=95728256 +mode=wait size=1 polls=175 worker_cpu_ms=0.000 wall_ms=250.856 worker_allocated_bytes=5600 +mode=upstream size=1 polls=2979343 worker_cpu_ms=250.000 wall_ms=250.000 worker_allocated_bytes=95338976 +mode=wait size=1 polls=171 worker_cpu_ms=0.000 wall_ms=251.306 worker_allocated_bytes=5472 +mode=upstream size=64 polls=1001664 worker_cpu_ms=250.000 wall_ms=250.000 worker_allocated_bytes=32053248 +mode=wait size=64 polls=168 worker_cpu_ms=0.000 wall_ms=250.695 worker_allocated_bytes=5376 +mode=upstream size=64 polls=1001600 worker_cpu_ms=250.000 wall_ms=250.000 worker_allocated_bytes=32051200 +mode=wait size=64 polls=166 worker_cpu_ms=0.000 wall_ms=250.593 worker_allocated_bytes=5312 +mode=upstream size=64 polls=988856 worker_cpu_ms=234.375 wall_ms=250.000 worker_allocated_bytes=31643392 +mode=wait size=64 polls=171 worker_cpu_ms=0.000 wall_ms=250.557 worker_allocated_bytes=5472 diff --git a/docs/debounce-queue.md b/docs/debounce-queue.md index c28774de0..29822bede 100644 --- a/docs/debounce-queue.md +++ b/docs/debounce-queue.md @@ -51,3 +51,33 @@ allocated during the interval, not retained heap or process memory. Hardware, timer behavior and workload can change results. The CI publishes raw output for Linux, Windows and Apple Silicon macOS. No game-FPS claim follows from this microbenchmark alone. + +## Hosted results, 3 October 2026 + +Raw output is checked in under +[`benchmarks/debounce-queue-2026-10-03`](../benchmarks/debounce-queue-2026-10-03/). +The tables show medians of three trials. Allocations and CPU refer only to this +synthetic queue polling interval, not the entire game. The macOS runner is hosted +Apple Silicon with three logical CPUs; it is not the user's M2 Pro. + +| Platform / queued entries | Upstream allocation | Waiting allocation | Upstream worker CPU | Waiting worker CPU | +| --- | ---: | ---: | ---: | ---: | +| macOS ARM64 / 1 | 80,066,144 B | 768 B | 247.157 ms | 0.873 ms | +| macOS ARM64 / 64 | 34,344,320 B | 2,112 B | 248.550 ms | 1.154 ms | +| Linux x64 / 1 | 99,456,064 B | 7,520 B | 248.446 ms | 2.960 ms | +| Linux x64 / 64 | 31,971,072 B | 7,488 B | 249.987 ms | 2.890 ms | +| Windows x64 / 1 | 95,728,256 B | 5,536 B | 250.000 ms | Below counter resolution | +| Windows x64 / 64 | 32,051,200 B | 5,376 B | 250.000 ms | Below counter resolution | + +Each upstream interval lasted about 250 ms. Waiting medians were 250.068 ms on +Linux, 250.593–250.856 ms on Windows, and 251.431–252.426 ms on macOS. One macOS +trial lasted 258.012 ms, demonstrating timer overshoot. These are interval-ending +times; they are not measurements of a real block change reaching the screen. + +The real 0.7.0 adaptive-queue demo world renders and records with the hook enabled. +Thread inspection reached the injected debounce parking path. A 120-second run +wrote 643 frame intervals and 2,408 server ticks with matching CSV counts/means, +and 119–120 RSS samples. Distant-terrain data continued updating; game worlds and +DH databases closed cleanly. A separate 60-second profile confirmed allocation +counter activity on the queue thread. Its workload/cache state differs from the +earlier profile, so those profiles are not a numerical before/after comparison. diff --git a/docs/playable-validation.md b/docs/playable-validation.md index 57790bbf3..7b179da9f 100644 --- a/docs/playable-validation.md +++ b/docs/playable-validation.md @@ -22,6 +22,18 @@ Version 0.2.0 targets Minecraft 26.3 / Fabric 0.19.5 / Java 25. This is an initi ## Interpretation limits +The 0.7.0 optional debounce queue hook initializes and renders with the combined +adaptive/pacing controls. The exact candidate JAR wrote 643 frame intervals and +2,408 server-tick samples over 120 seconds; CSV counts and means match the reports, +which capture all three controls as enabled and include resident-memory samples. +Thread inspection reached the injected debounce parking path, DH terrain data +continued updating, and worlds/databases/workers closed cleanly. The actual +publisher queue microbenchmark passes identity/priority/count checks on Linux, +Windows and Apple Silicon macOS; its raw results and timing overshoot are documented +in [the queue experiment](debounce-queue.md). These are separate from game-FPS, +block-update-latency or RAM-reduction claims. All eleven pack overrides retain +simulation distance 12 and explicitly set the intended experimental flags. + The 0.6.0 resident-memory sampler ran in the actual adaptive-pacing demo world. A 120-second recording produced 370 frame intervals and 2,407 server-tick samples; both CSV counts and mean durations match their JSON summaries. Each report has