diff --git a/benchmarks/worker-pacing-2026-10-03/macos-26.txt b/benchmarks/worker-pacing-2026-10-03/macos-26.txt new file mode 100644 index 000000000..2a007109d --- /dev/null +++ b/benchmarks/worker-pacing-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 +upstream requested ratio 0.500; 50000 tasks of 10000 ns; worker CPU/wall 0.346; 1643.771 ms; worker allocation 1403064 bytes +precise requested ratio 0.500; 50000 tasks of 10000 ns; worker CPU/wall 0.514; 1061.526 ms; worker allocation 15456 bytes +upstream requested ratio 0.050; 50000 tasks of 10000 ns; worker CPU/wall 0.466; 1238.603 ms; worker allocation 1449704 bytes +precise requested ratio 0.050; 50000 tasks of 10000 ns; worker CPU/wall 0.063; 11385.730 ms; worker allocation 204024 bytes +upstream requested ratio 0.500; 50000 tasks of 10000 ns; worker CPU/wall 0.703; 785.293 ms; worker allocation 1417064 bytes +precise requested ratio 0.500; 50000 tasks of 10000 ns; worker CPU/wall 0.509; 1097.416 ms; worker allocation 14496 bytes +upstream requested ratio 0.050; 50000 tasks of 10000 ns; worker CPU/wall 0.431; 1293.360 ms; worker allocation 1529184 bytes +precise requested ratio 0.050; 50000 tasks of 10000 ns; worker CPU/wall 0.065; 10727.658 ms; worker allocation 198104 bytes +upstream requested ratio 0.500; 50000 tasks of 10000 ns; worker CPU/wall 0.620; 896.747 ms; worker allocation 1490864 bytes +precise requested ratio 0.500; 50000 tasks of 10000 ns; worker CPU/wall 0.518; 1062.565 ms; worker allocation 13096 bytes +upstream requested ratio 0.050; 50000 tasks of 10000 ns; worker CPU/wall 0.605; 975.086 ms; worker allocation 1450064 bytes +precise requested ratio 0.050; 50000 tasks of 10000 ns; worker CPU/wall 0.060; 11976.557 ms; worker allocation 196840 bytes diff --git a/benchmarks/worker-pacing-2026-10-03/ubuntu-latest.txt b/benchmarks/worker-pacing-2026-10-03/ubuntu-latest.txt new file mode 100644 index 000000000..0994136cb --- /dev/null +++ b/benchmarks/worker-pacing-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 +upstream requested ratio 0.500; 50000 tasks of 10000 ns; worker CPU/wall 1.000; 578.014 ms; worker allocation 1450616 bytes +precise requested ratio 0.500; 50000 tasks of 10000 ns; worker CPU/wall 0.525; 1041.454 ms; worker allocation 64976 bytes +upstream requested ratio 0.050; 50000 tasks of 10000 ns; worker CPU/wall 0.976; 591.683 ms; worker allocation 1451744 bytes +precise requested ratio 0.050; 50000 tasks of 10000 ns; worker CPU/wall 0.076; 10349.493 ms; worker allocation 145264 bytes +upstream requested ratio 0.500; 50000 tasks of 10000 ns; worker CPU/wall 1.000; 577.632 ms; worker allocation 1451096 bytes +precise requested ratio 0.500; 50000 tasks of 10000 ns; worker CPU/wall 0.523; 1043.863 ms; worker allocation 65120 bytes +upstream requested ratio 0.050; 50000 tasks of 10000 ns; worker CPU/wall 0.977; 591.337 ms; worker allocation 1410264 bytes +precise requested ratio 0.050; 50000 tasks of 10000 ns; worker CPU/wall 0.076; 10334.845 ms; worker allocation 124264 bytes +upstream requested ratio 0.500; 50000 tasks of 10000 ns; worker CPU/wall 0.987; 583.777 ms; worker allocation 1490096 bytes +precise requested ratio 0.500; 50000 tasks of 10000 ns; worker CPU/wall 0.524; 1038.102 ms; worker allocation 64656 bytes +upstream requested ratio 0.050; 50000 tasks of 10000 ns; worker CPU/wall 0.952; 606.495 ms; worker allocation 1408464 bytes +precise requested ratio 0.050; 50000 tasks of 10000 ns; worker CPU/wall 0.076; 10346.209 ms; worker allocation 165856 bytes diff --git a/benchmarks/worker-pacing-2026-10-03/windows-latest.txt b/benchmarks/worker-pacing-2026-10-03/windows-latest.txt new file mode 100644 index 000000000..9b4cb8f46 --- /dev/null +++ b/benchmarks/worker-pacing-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 +upstream requested ratio 0.500; 50000 tasks of 10000 ns; worker CPU/wall 0.952; 557.784 ms; worker allocation 1491496 bytes +precise requested ratio 0.500; 50000 tasks of 10000 ns; worker CPU/wall 0.556; 1038.982 ms; worker allocation 17776 bytes +upstream requested ratio 0.050; 50000 tasks of 10000 ns; worker CPU/wall 0.852; 623.419 ms; worker allocation 1410384 bytes +precise requested ratio 0.050; 50000 tasks of 10000 ns; worker CPU/wall 0.078; 10247.387 ms; worker allocation 214896 bytes +upstream requested ratio 0.500; 50000 tasks of 10000 ns; worker CPU/wall 0.998; 548.088 ms; worker allocation 1489616 bytes +precise requested ratio 0.500; 50000 tasks of 10000 ns; worker CPU/wall 0.574; 1034.032 ms; worker allocation 15096 bytes +upstream requested ratio 0.050; 50000 tasks of 10000 ns; worker CPU/wall 0.867; 630.903 ms; worker allocation 1449664 bytes +precise requested ratio 0.050; 50000 tasks of 10000 ns; worker CPU/wall 0.078; 10266.232 ms; worker allocation 214904 bytes +upstream requested ratio 0.500; 50000 tasks of 10000 ns; worker CPU/wall 0.996; 549.301 ms; worker allocation 1448456 bytes +precise requested ratio 0.500; 50000 tasks of 10000 ns; worker CPU/wall 0.452; 1036.321 ms; worker allocation 13776 bytes +upstream requested ratio 0.050; 50000 tasks of 10000 ns; worker CPU/wall 0.971; 563.129 ms; worker allocation 1409664 bytes +precise requested ratio 0.050; 50000 tasks of 10000 ns; worker CPU/wall 0.100; 10276.324 ms; worker allocation 214744 bytes diff --git a/docs/playable-validation.md b/docs/playable-validation.md index bf721c97d..d5135748f 100644 --- a/docs/playable-validation.md +++ b/docs/playable-validation.md @@ -22,6 +22,16 @@ Version 0.2.0 targets Minecraft 26.3 / Fabric 0.19.5 / Java 25. This is an initi ## Interpretation limits +The 0.4.0 worker-pacing hook also renders the demo world with the complete mod stack. +Both pacing and adaptive controls are captured as enabled in the final build's +120-second frame report. It produced 359 frame intervals and 2,401 integrated-server +tick samples, verified against raw CSV counts and heap/resource fields. The DH database +received terrain-data updates during this run. The earlier hook build saved/quitted +and closed its databases/workers cleanly. Hosted executor benchmarks pass on Linux, +Windows and Apple Silicon macOS; [their results](worker-pacing.md) remain separate +from game-performance claims. The revised policy tests include 1 ms and 15 ms timer +overshoot and bounded credit after long stalls. + The 0.3.0 adaptive profile rendered the actual demo world and applied live DH duty-cycle changes from 0.5 down to 0.05 under software-renderer frame pressure. Opening the pause menu released the override and reported an effective ratio of 0.5 again. A separate diff --git a/docs/worker-pacing.md b/docs/worker-pacing.md index d972d5855..d804b74a7 100644 --- a/docs/worker-pacing.md +++ b/docs/worker-pacing.md @@ -63,3 +63,31 @@ changes, idle time and invalid ratios. Native game validation must also check te progress, frame/tick capture and clean shutdown. On the M2 Pro, compare balanced, worker-pacing and adaptive-pacing with identical cold and warm worlds. Record distant terrain completion times alongside foreground performance and CPU use. + +## Hosted executor measurements + +[Raw platform results](../benchmarks/worker-pacing-2026-10-03/) came from +[CI run 37147381649](https://github.com/ludovic111/minecraft-optimization-lab/actions/runs/37147381649), +using the 50,000-job workload and the revised overshoot credit. Median worker CPU +seconds per elapsed second across three runs were: + +| Platform | Requested budget | Upstream | Precise | +| --- | ---: | ---: | ---: | +| macOS ARM64 | 0.50 | 0.620 | 0.514 | +| macOS ARM64 | 0.05 | 0.466 | 0.063 | +| Linux x64 | 0.50 | 1.000 | 0.524 | +| Linux x64 | 0.05 | 0.976 | 0.076 | +| Windows x64 | 0.50 | 0.996 | 0.556 | +| Windows x64 | 0.05 | 0.867 | 0.078 | + +These are isolated worker ratios, not game CPU reductions or FPS gains. The macOS +runner exposes three logical CPUs and is not the user's M2 Pro. At the 0.05 setting, +processing the fixed workload takes roughly 10–11 seconds with the precise timer; +many upstream runs finish in under two seconds because the requested delay is not +being applied consistently. Lower background activity costs completion time. +Actual CPU ratios exceed the nominal task-time ratio because executor/sleep overhead +also consumes CPU. OS preemption and counter precision affect each run. + +Median worker allocation per job at the 0.50 setting fell from approximately 28–30 +bytes to 0.3–1.3 bytes on these runners. This supports removal of the per-job boxed +timestamp; it does not establish a significant whole-game heap reduction.