#2212 WIP: perf(vk): with the render thread, a fence of one queue need not wait for the other queues' submissions (RX_VK_ASYNC_FENCES)
Summary
The change failed on Steam Deck, Linux NVIDIA, Linux AMD and Windows AMD; the RTX 4070, Arc B580 and RX 6600 targets passed. On Steam Deck with async fences on, maximum screenshot difference rose from 0.0123 to 0.7126, above the 0.2 limit; on the Linux GTX 1070 it rose from 0.0535 to 0.6982 with fences off and from 0.0989 to 0.7058 with fences on. On the Linux Radeon 760M, the PR’s Forest frame-time p99 increased from 52.704 ms with fences off to 61.998 ms with fences on (+17.6%, above the 15% limit). The Windows RX 7900 XT failure may be specific to that PC: both baseline and candidate crashed in both modes, leaving no usable starts, while the RX 9070 XT report passed.
Commit
Plan (gpt-6.1-terra)
Compare threaded rendering with async fences off and on in Kokiri Forest and Hyrule Field
⚠️ Note: The off arm explicitly sets the switch to 0 rather than leaving it unset; the PR describes both as off. Main is repeated across the PR-only switch cells with the switch unset.
⚠️ Note: The one-minute measurements are shorter than requested, and the timed scenes are stationary rather than active play. Two starts per side give less noise resistance than three.
⚠️ Note: The farm cannot run the standalone Linux unit test, detect every transient black frame, prove individual fence ordering, or exercise the window swapchain present path in this headless plan.
In plain words
Compare main with the PR’s async fences off and on in Kokiri Forest and Hyrule Field, with two interleaved starts per side on each requested hardware target. Each start captures a Forest picture 10 seconds after the map loads and measures one minute in each area with threaded rendering enabled; the switch axis also permits a direct comparison of the PR’s two modes. Crashes, fatal or device-lost logs, substantial picture differences, or frame-time regressions beyond the noise margins fail the run. The Arc B580 and RX 6600 targets will wait for matching testers to come online. No tester online now matches windows+intel+gpu-arc-b580: that target waits for one.
Raw plan Download plan.json
{
"pass": {
"crash": false,
"compare": [
{
"axis": "RX_VK_ASYNC_FENCES",
"side": "pr",
"value": "1",
"metric": "frametime_p50_ms",
"against": "0",
"max_delta_pct": 10
},
{
"axis": "RX_VK_ASYNC_FENCES",
"side": "pr",
"value": "1",
"metric": "frametime_p99_ms",
"against": "0",
"max_delta_pct": 15
}
],
"screenshot": {
"max_diff": 0.2
},
"frametime_p50_ms": {
"max_delta_pct": 10
},
"frametime_p99_ms": {
"max_delta_pct": 15
},
"log_forbidden_hits": {
"max": 0
},
"frametime_1pct_low_ms": {
"max_delta_pct": 15
}
},
"probe": [
{
"kind": "crash"
},
{
"kind": "frametime"
},
{
"kind": "log_match",
"expected": [],
"forbidden": [
"FATAL",
"device lost",
"[Vv]alidation [Ee]rror"
]
}
],
"matrix": {
"pr_only": {
"RX_VK_ASYNC_FENCES": [
"0",
"1"
]
}
},
"schema": 8,
"target": [
{
"gpu": [
"rtx 4070"
],
"name": "windows+nvidia+gpu-rtx-4070",
"tags": [
"windows",
"nvidia"
],
"max_reports": 2,
"min_reports": 1
},
{
"gpu": [
"arc b580"
],
"name": "windows+intel+gpu-arc-b580",
"tags": [
"windows",
"intel"
],
"max_reports": 2,
"min_reports": 1
},
{
"gpu": [
"rx 6600"
],
"name": "linux+radv+gpu-rx-6600",
"tags": [
"linux",
"radv"
],
"max_reports": 2,
"min_reports": 1
},
{
"name": "steamdeck",
"tags": [
"steamdeck"
],
"max_reports": 2,
"min_reports": 1
},
{
"name": "linux+nvidia",
"tags": [
"linux",
"nvidia"
],
"max_reports": 2,
"min_reports": 1
},
{
"name": "linux+amd",
"tags": [
"linux",
"amd"
],
"max_reports": 2,
"min_reports": 1
},
{
"name": "windows+amd",
"tags": [
"windows",
"amd"
],
"max_reports": 2,
"min_reports": 1
}
],
"summary": "Compare threaded rendering with async fences off and on in Kokiri Forest and Hyrule Field",
"baseline": {
"ref": "main"
},
"scenario": [
{
"env": {
"RX_VK_ASYNC": "1"
},
"name": "forest-field",
"runs": 2,
"step": [
{
"do": "teleport",
"to": "KokiriForest_Child"
},
{
"do": "wait",
"map": "KokiriForest_Child",
"event": "map",
"timeout_s": 90
},
{
"do": "wait_s",
"seconds": 10
},
{
"do": "shot",
"name": "forest",
"upload": false,
"compare": "baseline"
},
{
"do": "measure",
"name": "forest",
"warmup_s": 5,
"duration_s": 60
},
{
"do": "teleport",
"to": "HyruleField_Child"
},
{
"do": "wait",
"map": "HyruleField_Child",
"event": "map",
"timeout_s": 90
},
{
"do": "measure",
"name": "field",
"warmup_s": 5,
"duration_s": 60
}
],
"start": "save:kokiri-start",
"matrix": true,
"settings": {}
}
]
}
Targets
| Target | Tier | Reports | Status |
|---|---|---|---|
| windows+nvidia+gpu-rtx-4070 GPU "rtx 4070" | reviewed HumanBean | 1 2 | 2/1 pass |
| windows+intel+gpu-arc-b580 GPU "arc b580" | reviewed HumanBean | 1 | 1/1 pass |
| linux+radv+gpu-rx-6600 GPU "rx 6600" | reviewed HumanBean | 1 2 | 2/1 pass |
| steamdeck | reviewed HumanBean | 1 2 | 1/1 fail |
| linux+nvidia | reviewed HumanBean | 1 2 | 1/1 fail |
| linux+amd | reviewed HumanBean | 1 2 | 1/1 fail |
| windows+amd | reviewed HumanBean | 1 2 | 1/1 fail |
Reports
| Report | Commit | Target | Tester | Result | When |
|---|---|---|---|---|---|
| rp_b5aed931bd41da27 | c314a21 | windows+nvidia+gpu-rtx-4070 | Erv349/agent-8dac98 | pass outlier | |
| rp_1b767f8262e5de71 | c314a21 | linux+radv+gpu-rx-6600 | deiphiz/agent-c14bfa | pass outlier | |
| rp_c0bf04eed60e38cb | c314a21 | steamdeck | AlbertoLuna/agent-f5e6ea | fail outlier | |
| rp_3bde5adc95bcafb5 | c314a21 | windows+intel+gpu-arc-b580 | xaliax/agent-ab7501 | pass | |
| rp_8167053f9c6a9cb0 | c314a21 | windows+amd | nanreh/agent-0f15c6 | fail | |
| rp_360001960c4af809 | c314a21 | linux+amd | Hidden tester | fail outlier | |
| rp_844bb1d896a94c44 | c314a21 | linux+nvidia | Nerdtality/agent-0452e3 | fail outlier | |
| rp_61b9fcb5b7198fef | c314a21 | windows+amd | Hellknight/agent-ff6c58 | pass | |
| rp_15893045124a7c03 | c314a21 | steamdeck | Wrath/agent-0e17b1 | pass outlier | |
| rp_d576da7b1dab96df | c314a21 | linux+nvidia | Hidden tester | pass outlier | |
| rp_0547b5256abee572 | c314a21 | linux+radv+gpu-rx-6600 | manoouuu/agent-249cbc | pass outlier | |
| rp_1752610a672d4399 | c314a21 | windows+nvidia+gpu-rtx-4070 | enum/agent-5773ed | pass outlier | |
| rp_ce83e0aa20454d9f | c314a21 | linux+amd | FusionLord/agent-940fc0 | pass outlier |
Jobs
| Job | Commit | Target | State | Tester | Started | Attempts | Estimate | Note |
|---|---|---|---|---|---|---|---|---|
jb_6169d1b405d3c1f2 log | c314a21 | windows+intel+gpu-arc-b580 off target | cancelled build-base | PoPuP/agent-f15599 | 1 | stopped by the tester: you stopped testing | ||
jb_444f661323ee837c log | c314a21 | windows+intel+gpu-arc-b580 | cancelled | — | 1 | the PR was closed | ||
jb_c38660fac7455add log | c314a21 | linux+amd | done report | FusionLord/agent-940fc0 | 1 | |||
jb_356e13784555e97e log | c314a21 | steamdeck | done report | AlbertoLuna/agent-f5e6ea | 1 | |||
jb_28d6a267b1f56a8f log | c314a21 | windows+amd | done run | Hellknight/agent-ff6c58 | 1 | |||
jb_337dabc115688c39 log | c314a21 | windows+amd | done report | nanreh/agent-0f15c6 | 2 | lease expired, tried again: the tester missed its heartbeats | ||
jb_7170d1fe8e61a718 log | c314a21 | linux+amd | done report | Hidden tester | 1 | |||
jb_1558429776fbe2fb log | c314a21 | linux+radv+gpu-rx-6600 | done report | deiphiz/agent-c14bfa | 1 | |||
jb_22469713a749580a log | c314a21 | windows+nvidia+gpu-rtx-4070 | done run | enum/agent-5773ed | 1 | |||
jb_482159f0275ada19 log | c314a21 | linux+radv+gpu-rx-6600 | done report | manoouuu/agent-249cbc | 1 | |||
jb_eaaf1093d0d66050 log | c314a21 | steamdeck | done report | Wrath/agent-0e17b1 | 1 | |||
jb_2384b31ae736f816 log | c314a21 | linux+nvidia | done run | Nerdtality/agent-0452e3 | 1 | |||
jb_972afeb20ab8aaf2 log | c314a21 | linux+nvidia | done run | Hidden tester | 1 | |||
jb_345ed4c2e74dc534 log | c314a21 | windows+intel+gpu-arc-b580 | done report | xaliax/agent-ab7501 | 1 | |||
jb_b21b1336855913e1 log | c314a21 | windows+nvidia+gpu-rtx-4070 | done report | Erv349/agent-8dac98 | 2 | stopped by the tester: you stopped testing |