rt README: the cleared target's first read through the shadow's clear, re-timed on the UHD 630
The known gap gave a pass that clears its target and reads it at its first draw as 10.5% slower
than the old runtime at 3648 x 2038 (4,635.1 against 4,195.7 us), the copy of a cleared target.
With the clear of the shadow in its place, re-timed on the UHD 630 (harness, release, four rounds,
GPU p50 a pass, old and new runtimes in one exclusive job, m3-max-47088, on the probe rows over
a5f3159c76, the same code as 4780d85bf8): 4,200.8 against 4,159.4 us (+1.0%), and 1,095.3 against
1,109.1 us at 1920 x 1080 (-1.2%). The same runs give the other rows: after a barrier 4,836.4
against 5,429.4 us, the first read of a loaded target 3,849.6 against 4,218.2 us, the pass
reading another texture 2,341.2 and 644.2 us. The r3 and b3 frame figures were counted before
the clear, so they bound the copies from above.
This commit is contained in:
1 parent
385ad1b349
commit
e632e01478
1 file changed
+15
-14
@@ -1464,20 +1464,21 @@ or does not check is rebuilt from the generations' names, with young counted ful
|
||||
draw reads an attachment through a copy into the image's shadow, which Metal does not make: at
|
||||
the pass's first draw that reads the image, at the first after a memory barrier after draws,
|
||||
and where a draw reads what the shadow does not hold, the rendering ended and begun again
|
||||
around the copies and their two barriers. Its cost, measured on the UHD 630 in the harness
|
||||
(release; GPU time a pass, the median over four rounds of each round's median) by a pass that
|
||||
loads its `BGRA8Unorm` target, ends for a copy of all of it and begins again, against the same
|
||||
pass without the copy: 39.0 µs a MiB at 1920 × 1080 and 53.5 µs a MiB at 3648 × 2038, and
|
||||
about 3 to 8 µs a copy beyond its bytes. Two replay streams, counted as this form copies them,
|
||||
make 68.7 copies and 298.0 MiB a frame (r3) and 65.5 copies and 93.4 MiB a frame (b3): about 12 to
|
||||
16.5 ms a frame on the UHD 630 for r3 and 4 to 5.5 ms for b3, where no copied target was
|
||||
cleared by its pass. A copy of a target its pass cleared costs more: a pass that clears its
|
||||
target and reads it at its first draw takes 1,118.8 µs at 1920 × 1080 and 4,635.1 µs at
|
||||
3648 × 2038, against 668.5 µs and 2,341.0 µs for the same pass reading another texture, about
|
||||
57 and 81 µs a MiB. Against the old runtime at 3648 × 2038, this form reads the target faster
|
||||
after a barrier (4,652.6 µs against 5,438.8 µs) and at the first read of a pass that loads it
|
||||
(3,750.9 µs against 4,247.8 µs), and more slowly at the first read of a pass that clears it
|
||||
(4,635.1 µs against 4,195.7 µs; at 1920 × 1080, 1,118.8 µs against 1,099.2 µs).
|
||||
around the copies and their two barriers; where the draw is the pass's first and reads only
|
||||
what its pass cleared, a clear of the shadow takes the copies' place. Its cost, measured on the
|
||||
UHD 630 in the harness (release; GPU time a pass, the median over four rounds of each round's
|
||||
median) by a pass that loads its `BGRA8Unorm` target, ends for a copy of all of it and begins
|
||||
again, against the same pass without the copy: 39.0 µs a MiB at 1920 × 1080 and 53.5 µs a MiB
|
||||
at 3648 × 2038, and about 3 to 8 µs a copy beyond its bytes. Two replay streams, counted before
|
||||
a first read of what its pass cleared became a clear (so at most this many copies), make 68.7
|
||||
copies and 298.0 MiB a frame (r3) and 65.5 copies and 93.4 MiB a frame (b3): about 12 to 16.5
|
||||
ms a frame on the UHD 630 for r3 and 4 to 5.5 ms for b3. A pass that clears its target and
|
||||
reads it at its first draw, through the shadow's clear, takes 1,095.3 µs at 1920 × 1080
|
||||
and 4,200.8 µs at 3648 × 2038, against 644.2 µs and 2,341.2 µs for the same pass reading
|
||||
another texture. Against the old runtime in the same runs, at 3648 × 2038, this form reads the
|
||||
target faster after a barrier (4,836.4 µs against 5,429.4 µs) and at the first read of a pass
|
||||
that loads it (3,849.6 µs against 4,218.2 µs), and within 1% at the first read of a pass that
|
||||
clears it (4,200.8 µs against 4,159.4 µs; at 1920 × 1080, 1,095.3 µs against 1,109.1 µs).
|
||||
|
||||
## One path for every device
|
||||
|
||||
|
||||
Reference in new issue
Block a user