5f00a2a16b
The replay's sounds, the raid map's counts and the struck objects now read the recording's event and scene journals by time instead of every pass over the whole journal: partition points over the journals (with a stable time index built at close only when a journal is out of order), the map's kill and hit prefix indices, each object's first hit, and marker/time-line paths that stop at the map's shape cap. Blasts, smoke, debris and the fire replay read bounded windows back from the moment. The sets, order and names stay exactly as they were: tests compare every reader against the full journal filter, including tied times, out-of-order journals and arbitrary forward and back seeks. The replay_bench example measures a 10-minute raid with nearly full journals (playback, reverse seek, pause, MP4); its result is docs/measurements/issue-150-replay-ranges.json. Co-Authored-By: Kimi Code <noreply@moonshot.ai>
99 lines
3.0 KiB
JSON
99 lines
3.0 KiB
JSON
{
|
|
"schema": 1,
|
|
"issue": 150,
|
|
"world": "ReplayRanges150",
|
|
"branch": "agent/150-replay-ranges",
|
|
"code_commit": "agent/150-replay-ranges (this branch; see git log for the exact SHA)",
|
|
"bench": "cargo run --release --example replay_bench --features bench-counters (airdef-mod; native, one machine)",
|
|
"journal": {
|
|
"ticks": 12000,
|
|
"seconds": 600,
|
|
"events": 64000,
|
|
"scene_events": 65000,
|
|
"cap_events": 65536,
|
|
"cap_scene_events": 65536,
|
|
"note": "a 10-minute raid with both journals nearly full"
|
|
},
|
|
"modes": [
|
|
{
|
|
"mode": "playback",
|
|
"frames": 600,
|
|
"journal_events": 64000,
|
|
"journal_scene": 65000,
|
|
"scanned_events": 1203211,
|
|
"scanned_per_frame": 2005.4,
|
|
"full_pass_events": 77400000,
|
|
"p50_us": 32.3,
|
|
"p95_us": 40.8,
|
|
"p99_us": 56.5,
|
|
"max_us": 127.5,
|
|
"events_bytes": 5120000,
|
|
"scene_bytes": 4680000,
|
|
"index_bytes": 131136
|
|
},
|
|
{
|
|
"mode": "reverse_seek",
|
|
"frames": 600,
|
|
"journal_events": 64000,
|
|
"journal_scene": 65000,
|
|
"scanned_events": 195747,
|
|
"scanned_per_frame": 326.2,
|
|
"full_pass_events": 77400000,
|
|
"p50_us": 3.1,
|
|
"p95_us": 23.7,
|
|
"p99_us": 26.3,
|
|
"max_us": 45.9,
|
|
"events_bytes": 5120000,
|
|
"scene_bytes": 4680000,
|
|
"index_bytes": 131136
|
|
},
|
|
{
|
|
"mode": "pause",
|
|
"frames": 600,
|
|
"journal_events": 64000,
|
|
"journal_scene": 65000,
|
|
"scanned_events": 1034400,
|
|
"scanned_per_frame": 1724.0,
|
|
"full_pass_events": 77400000,
|
|
"p50_us": 19.8,
|
|
"p95_us": 20.5,
|
|
"p99_us": 22.5,
|
|
"max_us": 40.2,
|
|
"events_bytes": 5120000,
|
|
"scene_bytes": 4680000,
|
|
"index_bytes": 131136
|
|
},
|
|
{
|
|
"mode": "mp4",
|
|
"frames": 600,
|
|
"journal_events": 64000,
|
|
"journal_scene": 65000,
|
|
"scanned_events": 8386,
|
|
"scanned_per_frame": 14.0,
|
|
"full_pass_events": 77400000,
|
|
"p50_us": 1.6,
|
|
"p95_us": 1.9,
|
|
"p99_us": 4.1,
|
|
"max_us": 90.6,
|
|
"events_bytes": 5120000,
|
|
"scene_bytes": 4680000,
|
|
"index_bytes": 131136
|
|
}
|
|
],
|
|
"meaning": {
|
|
"scanned_events": "events the by-time readers handed out (bench-counters); before #150 each sound, map-count and object-strike read the whole journal",
|
|
"full_pass_events": "one whole-journal pass per measured frame, for scale: the readers did several per frame before #150",
|
|
"p50_us/p95_us/p99_us/max_us": "CPU per frame (playback at x2, 600 frames = 30 s)",
|
|
"index_bytes": "memory the by-time index adds (kill/hit indices, first hits, and the stable order only for a journal out of time order)"
|
|
},
|
|
"equivalence": [
|
|
"airdef-core: sim::record::tests::time_range_reads_match_the_full_journal_filter",
|
|
"airdef-core: sim::record::tests::an_out_of_order_journal_reads_by_time_with_stable_ties",
|
|
"airdef-core: sim::record::tests::prefix_counts_and_first_hits_match_the_journal",
|
|
"airdef-core: sim::record::tests::scene_time_range_matches_the_full_journal",
|
|
"airdef-core: sim::record::tests::blast_windows_hold_the_same_blasts_as_a_full_scan",
|
|
"airdef: replay::engine_tests::event_sounds_are_exactly_the_events_of_the_window_after_any_seek",
|
|
"airdef: replay::engine_tests::the_map_marks_the_events_up_to_now_in_their_order"
|
|
]
|
|
}
|