diff --git a/crates/metal2vulkan-rt/README.md b/crates/metal2vulkan-rt/README.md index 675ac711b..c418a6bbd 100644 --- a/crates/metal2vulkan-rt/README.md +++ b/crates/metal2vulkan-rt/README.md @@ -562,10 +562,11 @@ that touch blocks first. - Command buffers committed while an earlier one of their queue runs are reported complete together, at the last one's end, where Metal reports each at its own. Measured with the harness row `long_4cb` (four command buffers committed together, two runs in flight): on an RTX 2080, - at about 12 ms of GPU time each, the second and third were reported with the fourth, the second - about 25 ms after its own end; on an RX 550, at about 7 ms each, about 14 ms. The last command - buffer's own report is not late: on the 2080 it came 96.6-97.2 ms after its commit, where the - old runtime's came 95.6-95.8 ms after. The harness prints each command buffer's lateness, from + at about 12 ms of GPU time each, the third was reported with the fourth, about 12 ms after its + own end, and the second 0.8 ms after its own at the median (25 ms at the 90th percentile); on an + RX 550, at about 7 ms each, the third about 7.7 ms late and the second 0.9-1.4 ms at the median + (15 ms at the 90th). The last command buffer's own report is not late: on the 2080 it came + 97.2-97.5 ms after its commit, where the old runtime's came 94.9-96.4 ms after. The harness prints each command buffer's lateness, from its `gpu_end_time` to its completed handler (`late_us`). - Values the runtime reads back from GPU-written memory decide nothing beyond the reading command buffer's own results (`src/readback.rs`; a rule test holds every such read there). The sites: diff --git a/crates/metal2vulkan-rt/src/submit.rs b/crates/metal2vulkan-rt/src/submit.rs index b90f1c57d..0e471c403 100644 --- a/crates/metal2vulkan-rt/src/submit.rs +++ b/crates/metal2vulkan-rt/src/submit.rs @@ -51,8 +51,11 @@ pub(crate) const GROUP: usize = 16; /// submission's start whenever the completion that sends the held group comes late. Behind three, /// the frame of five command buffers on the UHD 630 completed in 420-429 us against 895-1137 us, /// and the second of four long command buffers was seen complete 74.7 ms after its commit against -/// 99.2 ms (76.5 against 96.8 on an RTX 2080), while a burst of 160 kept its time within 0.5% on -/// both (probe b15b306d2f, jobs m3-max-44423 and m3-max-44424). +/// 99.2 ms (76.5 against 96.8 on an RTX 2080, 46.8 against 57.7 on an RX 550), while a burst of +/// 160 kept its time within 0.5% on all three (probe b15b306d2f, jobs m3-max-44423, m3-max-44424 +/// and m3-max-44437). Not four: behind four the UHD 630 ran that burst in 2768-2839 us against +/// 1850-1860 us, more of its command buffers going alone, and the RTX 2080's long rows came to +/// 78.1-78.2 ms against 42.8-43.2 ms (jobs m3-max-44442 and m3-max-44443). pub(crate) const IN_FLIGHT: usize = 3; /// The calls the pending upload records at most: a call past them waits for it to complete.