Verify restored tick states in a live disposable world and explain sampled TPS

This commit is contained in:
Ludovic Marie
2026-10-04 08:48:18 +02:00
parent 02d7a5189d
commit 7d561596d6
3 changed files with 84 additions and 1 deletions
@@ -0,0 +1,78 @@
{
"schema": 1,
"source_commit": "02d7a5189d82a1bd528ca64148e17fc74700da6f",
"minecraft": "26.3",
"original_mod_sha256": "e651ef49bc97486e8dacfd4b640465c442525cd645e2dba71ddea9fb64347dd8",
"observations": {
"java_vendor": "Ubuntu",
"java_runtime_version": "25.0.4.1+1-1-26.04.4-Ubuntu",
"elapsed_seconds": 10.027359028,
"observed_ticks_per_second": 28.422239515327746,
"tick_state_capture_status": "sampled_server_ticks",
"tick_state_samples": 285,
"tick_state_invalid_samples": 0,
"tick_state_first": {
"sprinting": false,
"configured_tick_rate": 20.0,
"frozen": false,
"runs_game_elements": true,
"stepping": false
},
"tick_state_last": {
"sprinting": false,
"configured_tick_rate": 20.0,
"frozen": false,
"runs_game_elements": true,
"stepping": false
},
"tick_state_changed": [
"configured_tick_rate",
"frozen",
"stepping",
"sprinting",
"runs_game_elements"
],
"tick_state_frozen_samples": 161,
"tick_state_stepping_samples": 9,
"tick_state_sprinting_samples": 5,
"tick_state_suppressed_samples": 151,
"tick_state_nonstandard_rate_samples": 161,
"dropped_samples": 0,
"peak_players": 1,
"java_version": "25.0.4.1",
"os": "Linux",
"os_version": "7.0.0-31-generic",
"architecture": "amd64",
"garbage_collectors": [
"G1 Concurrent GC",
"G1 Old Generation",
"G1 Young Generation"
],
"compact_object_headers": true,
"stats": {
"count": 285,
"meanMs": 15.065535726315789,
"p50Ms": 8.230476,
"p95Ms": 53.157093,
"p99Ms": 79.723861,
"maxMs": 148.427376,
"meanRate": 66.37666380845957,
"lowOnePercentRate": 9.564567089457089,
"over16Ms": 100,
"over33Ms": 38,
"over50Ms": 16,
"over100Ms": 1
}
},
"csv_count_and_mean_verified": true,
"launcher_exit_code": 0,
"notes": [
"Private functional fixture on a disposable demo-world copy; not a performance comparison.",
"Changes are scheduled from client callbacks and applied by server tasks; exact transition times depend on callback scheduling.",
"Normal initial state, custom 40 tick rate and freeze, ten steps, restore 20/unfrozen, five-tick sprint, normal final state.",
"First and last sampled states match; all five intermediate change fields remain recorded.",
"Stepping state is sampled after invocation; the final stepping tick has already decremented its remaining-step count.",
"Raw worlds, logs, JFR files and fixture binaries remain private.",
"No live Mac or hardware GPU result."
]
}
+1 -1
View File
@@ -14,7 +14,7 @@ Sampling has limits. These are first/last sampled server states, not exact recor
Pure recording checks exercise restored intermediate changes, distinct frozen/suppressed states, late observations, absent/invalid manager state and wall-clock TPS calculation under G1, compact headers and ZGC. Offline comparison checks cover map ordering, changed/custom states and legacy/malformed input. The desktop and 390-pixel viewer checks also load the actual discarded paused capture (12 ticks over approximately 120 seconds), display its roughly 0.1 observed TPS and distinguish it from execution capacity. That capture remains excluded from performance evidence.
The private `TickStateIntegration` fixture runs only on a disposable demo-world copy. It starts a short recording, samples normal ticking, changes to 40 configured ticks/second and freezes, steps ten ticks, restores 20/unfrozen state, and requests a five-tick sprint. It checks that sampled boundary states match, all five intermediate state changes/counters survive, and accepted state/duration counts agree. The fixture is compiled in platform CI and excluded from the production JAR and downloadable packs. Actual applied-hook observations are validated locally on Linux; compilation is not a live Mac result.
The private `TickStateIntegration` fixture runs only on a disposable demo-world copy. It starts a short recording, samples normal ticking, changes to 40 configured ticks/second and freezes, steps ten ticks, restores 20/unfrozen state, and requests a five-tick sprint. It checks that sampled boundary states match, all five intermediate state changes/counters survive, and accepted state/duration counts agree. The fixture is compiled in platform CI and excluded from the production JAR and downloadable packs. The [final local applied-hook observation](../benchmarks/tick-state-2026-10-04/live-observations.json) records 285 invocations, with 161 frozen, 9 stepping, 5 sprinting, 151 suppressed-game-element and 161 nonstandard-rate samples. All five change fields survive restored boundary states; CSV count/mean and zero invalid/drop observations are verified, and the client exits with code zero. This is functional evidence rather than a performance comparison. Compilation is not a live Mac result.
Compile the private fixture after building the original mod:
+5
View File
@@ -148,6 +148,11 @@ warnings before drawing conclusions. Save comparison exports a summary JSON.
The viewer also shows Java implementation and loaded mod versions. Expand the
mod list to inspect it. Upgrades, additions and removals are flagged as experiment
variables; older reports with missing software identity show an unknown warning.
Tick reports also show sampled configured rate, freeze, step and sprint state.
Restored changes remain flagged; old or invalid state is unknown. Observed TPS
counts measured invocations, including frozen ticks, over recording wall time.
State is sampled after server invocations; it is not a completed-work or pause
trace. Compare the accompanying tick reports when judging integrated-server load.
DH changes clouds, chunk fade and transparency to blend its distant renderer;
assess visual differences as well as speed. For collector experiments test