mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-25 14:05:57 +00:00
The skip_cs setting leaves out every dispatch of the compute shaders it lists, named by the id the pass marks print.
Issue #1402 reports a GPU hang on Intel (Mesa ANV) right after the startup logo on game 1.2.1, which the pass marks put in one dispatch of cs 75be3722f62cb67e. #994 reports the same freeze on Intel's Windows driver with 1.2.1, while 1.4.3 boots. The cause is not found yet. skip_cs takes the named dispatches out so a tester can confirm the shader is the cause and get past it, at the cost of what the shader would write. An id shorter than 16 hex digits matches every shader whose id starts with it. The log names each listed id and the first dispatch skipped of each. The setting is registered in cfg.c, documented as Risky in docs/settings.md, and docs/agents/symptoms.md gets a row for the freeze. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3c5ae12830
commit
1910ffb609
4 files changed
+71
-4
No files matched your search
@@ -68,7 +68,8 @@ GPU semantics behind the graphics rows: [maxwell.md](../maxwell.md). The method
|
||||
|---|---|---|
|
||||
| device lost a few frames in, GPU writes to address 0 (older NVIDIA) | present from another thread or queue | every submit and present on one queue under one lock |
|
||||
| device lost or garbage on one AMD generation | views the driver branch mishandles (BC block views of 3D textures) | `vk: pass marks`, validation; the formats in the pass |
|
||||
| device lost on one scene, every run, one vendor | a shader or pass that driver cannot run | pass marks name the pass; skip shaders by hash to bisect |
|
||||
| device lost on one scene, every run, one vendor | a shader or pass that driver cannot run | pass marks name the pass; `skip_cs = <id>` (docs/settings.md) leaves out the dispatch the marks name, to bisect |
|
||||
| freeze on "Nintendo presents", then device lost, every run, Intel GPU (Windows driver and Mesa ANV), game 1.2.1 only; 1.4.3 boots (#994, #1402) | on ANV the pass marks put it in one compute dispatch of 1.2.1 after the startup logo (`dispatch 10 of submission 430`, `cs 75be3722f62cb67e`, absent from a 1.4.3 shader cache); the Windows driver has no pass marks, so the same dispatch there is a guess; the shader and why it hangs are not found yet | pass marks; `skip_cs = 75be3722f62cb67e`; game 1.4.3 |
|
||||
| GPU timeout after 1-2 min, single frames over 2 s | first-time shader stalls or a huge one-shot submission on a slow GPU | prepared shaders; submission sizes at boot |
|
||||
| GPU hang at boot with pipeline libraries | point lists without a point size | the shader writes point size or the device clamps it |
|
||||
| black window after a driver update | caches from another driver | the log line `vk_pipeline: ... written by another device or driver`; delete the caches next to `totk.exe` |
|
||||
|
||||
@@ -36,6 +36,7 @@ Many rows below are developer tools that only act together with another setting
|
||||
| `perf_slow_ms` (default `50`) | Frames at least this many milliseconds long get a `perf: slow frame` log line with the time blocked per cause. | Changes how many frames are logged; a small value fills the log. | Safe |
|
||||
| `replay_check` | `1` reads every texture read-back a second time after a full drain of the replay queue and compares the two. | Stalls the replay queue at every read-back, so frames get much slower; mismatches are only counted and logged. | Caution |
|
||||
| `resolve_check` | `1` compares every cached pool lookup with the locked lookup and stops on a difference. | Slows every pool lookup; the game stops if the two ever differ. | Caution |
|
||||
| `skip_cs` | Leaves out every dispatch of the compute shaders it names: up to 16 ids, separated by commas or spaces, each the 16 hex digits after `cs` in a `vk: last started ...: dispatch ...` pass-mark line of a lost device (fewer digits match every id that starts with them). At the first dispatch the log names each listed id, and then the first dispatch it skipped of each. For finding the shader behind a GPU hang that the pass marks put in one dispatch, such as the hang after the startup logo on Intel GPUs with game 1.2.1 (#1402). | Whatever the skipped shader writes is missing, so parts of the picture can be wrong or black, and a shader whose results the game reads back can change what it does; remove the line once the test is done. | Risky |
|
||||
| `speed_probe` | `1` adds the player's position and ground speed to the frame-rate line that `TOTK_TRACE=perf` prints every 120 presents. | Only adds log text; has no effect without `TOTK_TRACE=perf`. | Safe |
|
||||
|
||||
## Profiling and measurement
|
||||
|
||||
Reference in new issue
Block a user