From f692f04d0204a7b7bf720acb5703b3300f6d9234 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Sun, 4 Oct 2026 05:12:56 +0200 Subject: [PATCH] Record independent lookup results and matched live validation --- .../exploratory-observations.json | 274 ++++++++++++++++++ .../linux-applied-hooks.json | 88 ++++++ .../live-observations.json | 126 ++++++++ .../local-applied-hooks.json | 98 +++++++ docs/terrain-position.md | 23 ++ 5 files changed, 609 insertions(+) create mode 100644 benchmarks/terrain-position-2026-10-04/exploratory-observations.json create mode 100644 benchmarks/terrain-position-2026-10-04/linux-applied-hooks.json create mode 100644 benchmarks/terrain-position-2026-10-04/live-observations.json create mode 100644 benchmarks/terrain-position-2026-10-04/local-applied-hooks.json diff --git a/benchmarks/terrain-position-2026-10-04/exploratory-observations.json b/benchmarks/terrain-position-2026-10-04/exploratory-observations.json new file mode 100644 index 000000000..dc88d4c3e --- /dev/null +++ b/benchmarks/terrain-position-2026-10-04/exploratory-observations.json @@ -0,0 +1,274 @@ +{ + "schema": 1, + "original_mod_sha256": "7e0ffb16fbda2117ce3cfe9fc6249ff3c06c63be764207963ba331871ed6fabd", + "groups": [ + { + "label": "initial", + "initial_warmup_checks": 1000000, + "per_observation_warmup_checks": 0, + "observations": 1, + "compiler_diagnostics": false, + "compilation_waits": false, + "results": [ + { + "enabled": false, + "applied_hook_checked": true, + "owners": 30, + "queries": 491520, + "nonzero": 327049, + "lookup_digest": "c9745cc2e7cf6c486a92f87635c87590db61127063970c8a8c7bfb2ef5282cca", + "data_fingerprint": -5590987990034711991, + "data_unchanged": true, + "measured_checks": 2000000, + "checksum": 274877907204874744, + "allocated_bytes": 400, + "cpu_ns": 120024838, + "wall_ns": 161908976 + }, + { + "enabled": true, + "applied_hook_checked": true, + "owners": 30, + "queries": 491520, + "nonzero": 327049, + "lookup_digest": "c9745cc2e7cf6c486a92f87635c87590db61127063970c8a8c7bfb2ef5282cca", + "data_fingerprint": -5590987990034711991, + "data_unchanged": true, + "measured_checks": 2000000, + "checksum": 274877907204874744, + "allocated_bytes": 400, + "cpu_ns": 225290712, + "wall_ns": 296105327 + } + ] + }, + { + "label": "compiler-diagnostic", + "initial_warmup_checks": 1000000, + "per_observation_warmup_checks": 4000000, + "observations": 3, + "compiler_diagnostics": true, + "compilation_waits": false, + "results": [ + { + "enabled": false, + "applied_hook_checked": true, + "owners": 30, + "queries": 491520, + "nonzero": 327049, + "lookup_digest": "c9745cc2e7cf6c486a92f87635c87590db61127063970c8a8c7bfb2ef5282cca", + "data_fingerprint": -5590987990034711991, + "data_unchanged": true, + "measured_checks": 6000000, + "checksum": 274877907204874744, + "allocated_bytes": 400, + "cpu_ns": 338028221, + "wall_ns": 414836219, + "observations": [ + { + "cpu_ns": 116948835, + "wall_ns": 177862175, + "allocated_bytes": 400 + }, + { + "cpu_ns": 118223124, + "wall_ns": 134092410, + "allocated_bytes": 0 + }, + { + "cpu_ns": 102856262, + "wall_ns": 102881634, + "allocated_bytes": 0 + } + ] + }, + { + "enabled": true, + "applied_hook_checked": true, + "owners": 30, + "queries": 491520, + "nonzero": 327049, + "lookup_digest": "c9745cc2e7cf6c486a92f87635c87590db61127063970c8a8c7bfb2ef5282cca", + "data_fingerprint": -5590987990034711991, + "data_unchanged": true, + "measured_checks": 6000000, + "checksum": 274877907204874744, + "allocated_bytes": 400, + "cpu_ns": 277210100, + "wall_ns": 346114782, + "observations": [ + { + "cpu_ns": 98829230, + "wall_ns": 109874899, + "allocated_bytes": 400 + }, + { + "cpu_ns": 99766363, + "wall_ns": 120221997, + "allocated_bytes": 0 + }, + { + "cpu_ns": 78614507, + "wall_ns": 116017886, + "allocated_bytes": 0 + } + ] + } + ] + }, + { + "label": "normal-early", + "initial_warmup_checks": 1000000, + "per_observation_warmup_checks": 4000000, + "observations": 3, + "compiler_diagnostics": false, + "compilation_waits": false, + "results": [ + { + "enabled": false, + "applied_hook_checked": true, + "owners": 30, + "queries": 491520, + "nonzero": 327049, + "lookup_digest": "c9745cc2e7cf6c486a92f87635c87590db61127063970c8a8c7bfb2ef5282cca", + "data_fingerprint": -5590987990034711991, + "data_unchanged": true, + "measured_checks": 6000000, + "checksum": 274877907204874744, + "allocated_bytes": 400, + "cpu_ns": 250273130, + "wall_ns": 250904773, + "observations": [ + { + "cpu_ns": 96863757, + "wall_ns": 97499670, + "allocated_bytes": 400 + }, + { + "cpu_ns": 76736599, + "wall_ns": 76731887, + "allocated_bytes": 0 + }, + { + "cpu_ns": 76672774, + "wall_ns": 76673216, + "allocated_bytes": 0 + } + ] + }, + { + "enabled": true, + "applied_hook_checked": true, + "owners": 30, + "queries": 491520, + "nonzero": 327049, + "lookup_digest": "c9745cc2e7cf6c486a92f87635c87590db61127063970c8a8c7bfb2ef5282cca", + "data_fingerprint": -5590987990034711991, + "data_unchanged": true, + "measured_checks": 6000000, + "checksum": 274877907204874744, + "allocated_bytes": 400, + "cpu_ns": 260828228, + "wall_ns": 292619474, + "observations": [ + { + "cpu_ns": 100375163, + "wall_ns": 120697389, + "allocated_bytes": 400 + }, + { + "cpu_ns": 97211084, + "wall_ns": 108680199, + "allocated_bytes": 0 + }, + { + "cpu_ns": 63241981, + "wall_ns": 63241886, + "allocated_bytes": 0 + } + ] + } + ] + }, + { + "label": "normal-long-warmup", + "initial_warmup_checks": 10000000, + "per_observation_warmup_checks": 4000000, + "observations": 3, + "compiler_diagnostics": false, + "compilation_waits": true, + "results": [ + { + "enabled": false, + "applied_hook_checked": true, + "owners": 30, + "queries": 491520, + "nonzero": 327049, + "lookup_digest": "c9745cc2e7cf6c486a92f87635c87590db61127063970c8a8c7bfb2ef5282cca", + "data_fingerprint": -5590987990034711991, + "data_unchanged": true, + "measured_checks": 6000000, + "checksum": 274877907204874744, + "allocated_bytes": 400, + "cpu_ns": 331478729, + "wall_ns": 331596880, + "observations": [ + { + "cpu_ns": 111403835, + "wall_ns": 111532068, + "allocated_bytes": 400 + }, + { + "cpu_ns": 108573471, + "wall_ns": 108571667, + "allocated_bytes": 0 + }, + { + "cpu_ns": 111501423, + "wall_ns": 111493145, + "allocated_bytes": 0 + } + ] + }, + { + "enabled": true, + "applied_hook_checked": true, + "owners": 30, + "queries": 491520, + "nonzero": 327049, + "lookup_digest": "c9745cc2e7cf6c486a92f87635c87590db61127063970c8a8c7bfb2ef5282cca", + "data_fingerprint": -5590987990034711991, + "data_unchanged": true, + "measured_checks": 6000000, + "checksum": 274877907204874744, + "allocated_bytes": 400, + "cpu_ns": 260347437, + "wall_ns": 260362090, + "observations": [ + { + "cpu_ns": 74253874, + "wall_ns": 74284701, + "allocated_bytes": 400 + }, + { + "cpu_ns": 96313457, + "wall_ns": 96305444, + "allocated_bytes": 0 + }, + { + "cpu_ns": 89780106, + "wall_ns": 89771945, + "allocated_bytes": 0 + } + ] + } + ] + } + ], + "notes": [ + "Exploratory fixed-order single forks. Earlier fixture protocols were not committed; warmup and diagnostics differ between groups.", + "Current production arithmetic is the same binary in all groups. Only the final protocol is reproducible from source commit c6ec0b5.", + "Retains favorable and unfavorable observations; do not combine different protocols into a statistical speedup estimate.", + "Not game FPS/RAM, Mac GPU, retained-memory or cross-hardware performance evidence." + ] +} diff --git a/benchmarks/terrain-position-2026-10-04/linux-applied-hooks.json b/benchmarks/terrain-position-2026-10-04/linux-applied-hooks.json new file mode 100644 index 000000000..c33d074f9 --- /dev/null +++ b/benchmarks/terrain-position-2026-10-04/linux-applied-hooks.json @@ -0,0 +1,88 @@ +{ + "schema": 1, + "platform": "Linux-6.17.0-1022-azure-x86_64-with-glibc2.39", + "architecture": "x86_64", + "minecraft": "26.3", + "distant_horizons": "3.3.4", + "original_mod_sha256": "7e0ffb16fbda2117ce3cfe9fc6249ff3c06c63be764207963ba331871ed6fabd", + "results": [ + { + "enabled": false, + "applied_hook_checked": true, + "owners": 30, + "queries": 491520, + "nonzero": 327049, + "lookup_digest": "c9745cc2e7cf6c486a92f87635c87590db61127063970c8a8c7bfb2ef5282cca", + "data_fingerprint": -5590987990034711991, + "data_unchanged": true, + "measured_checks": 6000000, + "checksum": 274877907204874744, + "allocated_bytes": 400, + "cpu_ns": 164904484, + "wall_ns": 164901169, + "observations": [ + { + "cpu_ns": 59683623, + "wall_ns": 59686627, + "allocated_bytes": 400 + }, + { + "cpu_ns": 52733305, + "wall_ns": 52727455, + "allocated_bytes": 0 + }, + { + "cpu_ns": 52487556, + "wall_ns": 52487087, + "allocated_bytes": 0 + } + ] + }, + { + "enabled": true, + "applied_hook_checked": true, + "owners": 30, + "queries": 491520, + "nonzero": 327049, + "lookup_digest": "c9745cc2e7cf6c486a92f87635c87590db61127063970c8a8c7bfb2ef5282cca", + "data_fingerprint": -5590987990034711991, + "data_unchanged": true, + "measured_checks": 6000000, + "checksum": 274877907204874744, + "allocated_bytes": 400, + "cpu_ns": 151660192, + "wall_ns": 151647654, + "observations": [ + { + "cpu_ns": 56070222, + "wall_ns": 56068070, + "allocated_bytes": 400 + }, + { + "cpu_ns": 47850398, + "wall_ns": 47843978, + "allocated_bytes": 0 + }, + { + "cpu_ns": 47739572, + "wall_ns": 47735606, + "allocated_bytes": 0 + } + ] + } + ], + "notes": [ + "Actual public full-data lookup inside Fabric with generated numeric column data.", + "Thirty owners span positive/negative origins and six detail levels; output digests and source fingerprints match.", + "The actual redirect method is checked in each mode; source column data remains unchanged.", + "Three sequential warmed caller-loop observations are not independent forks; JIT compilation can vary.", + "Not whole-game FPS/RAM, rendered-pixel equivalence or a Mac GPU benchmark." + ], + "provenance": { + "source_commit": "c6ec0b5e14d2ea3546fb8858be4a655634a93387", + "workflow_run": "https://github.com/ludovic111/minecraft-optimization-lab/actions/runs/37171062262", + "job": "portable-mod (ubuntu-latest)", + "artifact": "horizon-ubuntu-latest", + "command": "python tools/test_terrain_position.py" + } +} diff --git a/benchmarks/terrain-position-2026-10-04/live-observations.json b/benchmarks/terrain-position-2026-10-04/live-observations.json new file mode 100644 index 000000000..02b7db36d --- /dev/null +++ b/benchmarks/terrain-position-2026-10-04/live-observations.json @@ -0,0 +1,126 @@ +{ + "schema": 1, + "minecraft": "26.3", + "distant_horizons": "3.3.4", + "original_mod_sha256": "7e0ffb16fbda2117ce3cfe9fc6249ff3c06c63be764207963ba331871ed6fabd", + "platform": "Linux x86_64", + "graphics": "llvmpipe software OpenGL", + "settings": { + "heap_bytes": 3221225472, + "gc": "G1", + "compact_headers": true, + "render_distance": 12, + "simulation_distance": 12, + "lod_radius_chunks": 128, + "lod_quality": "MEDIUM/MEDIUM/BLOCK", + "terrain_workers": 2, + "runtime_ratio": 0.5, + "world_difficulty": "PEACEFUL" + }, + "results": [ + { + "profile": "m2-balanced", + "position_enabled": false, + "elapsed_seconds": 120.557552272, + "frame_samples": 221, + "tick_samples": 2401, + "excluded_frames": 0, + "dropped_samples": 0, + "visual_settings_changed": [], + "frame_stats": { + "count": 221, + "meanMs": 539.3068458597285, + "p50Ms": 512.140615, + "p95Ms": 731.515105, + "p99Ms": 811.750394, + "maxMs": 995.181191, + "meanRate": 1.8542319788391781, + "lowOnePercentRate": 1.1163478251626853, + "over16Ms": 221, + "over33Ms": 221, + "over50Ms": 221, + "over100Ms": 221 + }, + "tick_stats": { + "count": 2401, + "meanMs": 9.190547997917534, + "p50Ms": 8.84372, + "p95Ms": 16.100883, + "p99Ms": 21.297713, + "maxMs": 50.24744, + "meanRate": 108.8074400162632, + "lowOnePercentRate": 34.084420672139515, + "over16Ms": 99, + "over33Ms": 6, + "over50Ms": 1, + "over100Ms": 0 + }, + "process_rss_peak_sampled_bytes": 2961256448, + "launcher_exit_code": 0 + }, + { + "profile": "terrain-position", + "position_enabled": true, + "elapsed_seconds": 120.41545128, + "frame_samples": 219, + "tick_samples": 2401, + "excluded_frames": 0, + "dropped_samples": 0, + "visual_settings_changed": [], + "frame_stats": { + "count": 219, + "meanMs": 543.8858950547946, + "p50Ms": 511.34048, + "p95Ms": 780.127415, + "p99Ms": 989.910492, + "maxMs": 1062.14914, + "meanRate": 1.8386209480561242, + "lowOnePercentRate": 0.9801615082035254, + "over16Ms": 219, + "over33Ms": 219, + "over50Ms": 219, + "over100Ms": 219 + }, + "tick_stats": { + "count": 2401, + "meanMs": 9.594661623490213, + "p50Ms": 9.152511, + "p95Ms": 17.227297, + "p99Ms": 25.78339, + "maxMs": 56.681493, + "meanRate": 104.22462398796237, + "lowOnePercentRate": 30.354925598948153, + "over16Ms": 143, + "over33Ms": 9, + "over50Ms": 1, + "over100Ms": 0 + }, + "process_rss_peak_sampled_bytes": 2989678592, + "launcher_exit_code": 0 + } + ], + "provenance": { + "source_commit": "c6ec0b5e14d2ea3546fb8858be4a655634a93387", + "workflow_run": "https://github.com/ludovic111/minecraft-optimization-lab/actions/runs/37171062262", + "runtime_mod_matches_linux_ci": true, + "initial_player_snapshot_sha256": "b4d11dbd6443625415a1e32aa242d0e2d09cd77ddb1becfde5d35cb6ab8d278a", + "initial_level_snapshot_sha256": "86a3c75ea993e50c4428da4dbadc5856688a9367f035c41b8bb49863a9aeb644", + "first_saved_player_position": [ + -56.5, + 69.0, + 55.5 + ], + "first_saved_player_rotation": [ + 141.5, + 16.950002670288086 + ] + }, + "notes": [ + "Fixed-order candidate then control single pair, separate copies of the same private world; approximately 307 seconds from demo-popup dismissal to capture for each. Initial player camera and both first saved camera positions matched.", + "Stationary view includes LOD terrain; both recordings have zero paused/unfocused exclusions and matching captured settings apart from the isolated hook. No statistical speed estimate is established.", + "Preceding 60-second JFR captures ran separately before the frame recording; JIT/cache/profiling effects are not eliminated.", + "Candidate saved, reloaded, saved again and quit; control saved and quit. Both foreground launchers returned 0, with no crash reports or remaining game processes.", + "Scene differs from earlier release captures, so comparisons across releases are not valid. Private test-world camera preparation is not included in the mod or release packs.", + "No FPS improvement is established. Software rendering dominates this machine; these are functional observations, not Mac, GPU or unified-memory performance results. RSS is process resident memory, not complete GPU/unified RAM." + ] +} diff --git a/benchmarks/terrain-position-2026-10-04/local-applied-hooks.json b/benchmarks/terrain-position-2026-10-04/local-applied-hooks.json new file mode 100644 index 000000000..4a2094707 --- /dev/null +++ b/benchmarks/terrain-position-2026-10-04/local-applied-hooks.json @@ -0,0 +1,98 @@ +{ + "schema": 1, + "platform": "Linux-7.0.0-31-generic-x86_64-with-glibc2.43", + "architecture": "x86_64", + "minecraft": "26.3", + "distant_horizons": "3.3.4", + "original_mod_sha256": "7e0ffb16fbda2117ce3cfe9fc6249ff3c06c63be764207963ba331871ed6fabd", + "results": [ + { + "enabled": false, + "applied_hook_checked": true, + "owners": 30, + "queries": 491520, + "nonzero": 327049, + "lookup_digest": "c9745cc2e7cf6c486a92f87635c87590db61127063970c8a8c7bfb2ef5282cca", + "data_fingerprint": -5590987990034711991, + "data_unchanged": true, + "measured_checks": 6000000, + "checksum": 274877907204874744, + "allocated_bytes": 400, + "cpu_ns": 331478729, + "wall_ns": 331596880, + "observations": [ + { + "cpu_ns": 111403835, + "wall_ns": 111532068, + "allocated_bytes": 400 + }, + { + "cpu_ns": 108573471, + "wall_ns": 108571667, + "allocated_bytes": 0 + }, + { + "cpu_ns": 111501423, + "wall_ns": 111493145, + "allocated_bytes": 0 + } + ] + }, + { + "enabled": true, + "applied_hook_checked": true, + "owners": 30, + "queries": 491520, + "nonzero": 327049, + "lookup_digest": "c9745cc2e7cf6c486a92f87635c87590db61127063970c8a8c7bfb2ef5282cca", + "data_fingerprint": -5590987990034711991, + "data_unchanged": true, + "measured_checks": 6000000, + "checksum": 274877907204874744, + "allocated_bytes": 400, + "cpu_ns": 260347437, + "wall_ns": 260362090, + "observations": [ + { + "cpu_ns": 74253874, + "wall_ns": 74284701, + "allocated_bytes": 400 + }, + { + "cpu_ns": 96313457, + "wall_ns": 96305444, + "allocated_bytes": 0 + }, + { + "cpu_ns": 89780106, + "wall_ns": 89771945, + "allocated_bytes": 0 + } + ] + } + ], + "notes": [ + "Actual public full-data lookup inside Fabric with generated numeric column data.", + "Thirty owners span positive/negative origins and six detail levels; output digests and source fingerprints match.", + "The actual redirect method is checked in each mode; source column data remains unchanged.", + "Three sequential warmed caller-loop observations are not independent forks; JIT compilation can vary.", + "Not whole-game FPS/RAM, rendered-pixel equivalence or a Mac GPU benchmark." + ], + "provenance": { + "source_commit": "c6ec0b5e14d2ea3546fb8858be4a655634a93387", + "command": "python tools/test_terrain_position.py", + "protocol": { + "initial_warmup_checks": 10000000, + "initial_compilation_wait_ms": 1000, + "observation_count": 3, + "per_observation_warmup_checks": 4000000, + "per_observation_compilation_wait_ms": 200, + "per_observation_measured_checks": 2000000, + "run_order": [ + false, + true + ], + "compiler_diagnostics": false + } + } +} diff --git a/docs/terrain-position.md b/docs/terrain-position.md index f2c07f4c5..f31c75762 100644 --- a/docs/terrain-position.md +++ b/docs/terrain-position.md @@ -55,3 +55,26 @@ are fixed-order single forks with three sequential observations, not independent repetitions or a statistical speed estimate. Compiler-diagnostic observations are kept separate. Live captures and independent platform checks are required before recommending it. + +Raw [current applied-hook results](../benchmarks/terrain-position-2026-10-04/local-applied-hooks.json) +and [earlier exploratory observations](../benchmarks/terrain-position-2026-10-04/exploratory-observations.json) +retain warm-up, diagnostics and source-provenance limits. + +The independent [Linux CI lookup fixture](../benchmarks/terrain-position-2026-10-04/linux-applied-hooks.json) +matched the same output/data fingerprints. Its three caller CPU observations +were about 59.7/52.7/52.5 ms upstream and 56.1/47.9/47.7 ms with the hook, +for two million checks each. These sequential observations favor the hook in +that workload, but do not establish whole-game or cross-hardware performance. +Windows, macOS ARM and Linux compilation and publisher differential checks pass. +The independent Linux production JAR matches the local binary byte-for-byte. + +The [live software-rendered observations](../benchmarks/terrain-position-2026-10-04/live-observations.json) +record 221 control frames versus 219 candidate frames in roughly 120 seconds, +with zero excluded frames and matching captured visual settings. Separate copies +of the same private world used matched stationary cameras and approximately +five-minute warm-up. No FPS gain is established. The candidate saved, reloaded, +saved again and quit; the control saved and quit. Both foreground launchers +returned zero and left no crash report or game process. The actual JSON/CSV pair +also passed offline viewer checks, including flag differences and mobile layout. +The hook remains optional and disabled in combined profiles. These checks do +not measure Apple Silicon graphics, unified memory or performance.