mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-24 13:45:57 +00:00
Turn the ANV vertex-shader storage barrier off by default on every GPU; players opt in with anv_vs_barrier = 1 (#927)
The barrier costs about 5% of the frame rate on an Iris Xe and was only tested there. TOTK_ANV_VS_BARRIER and anv_vs_barrier still force it on with 1 and off with 0. docs/settings.md says what it fixes, what it costs and that only Intel GPUs with Mesa ANV on Linux are affected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3026d91e31
commit
d98996b6e2
2 files changed
+4
-3
No files matched your search
+1
-1
@@ -138,7 +138,7 @@ Many rows below are developer tools that only act together with another setting
|
||||
|
||||
| Setting | What it does | Effect of changing it | Safety |
|
||||
| --- | --- | --- | --- |
|
||||
| `anv_vs_barrier` | A by-region barrier before each draw in a pass whose vertex shader reads a storage buffer. On by default on Intel GPUs with Mesa's ANV driver only, where such reads otherwise see stale data (campfire smoke and clouds drawn as white or dark blobs, a white sky for single frames, #927); `0` or `1` forces it off or on. | `0` on ANV brings the one-frame glitches back; `1` elsewhere adds barriers for nothing (about 5% of the frame rate on an Iris Xe). | Safe |
|
||||
| `anv_vs_barrier` | A by-region barrier before each draw in a pass whose vertex shader reads a storage buffer. Off by default (`0`). Only Intel GPUs with Mesa's ANV driver on Linux need it: there such reads see stale data and campfire smoke and clouds are drawn as white or dark blobs, or the sky flashes white for single frames (#927). Set `1` to turn it on. | `1` costs about 5% of the frame rate on an Iris Xe and does nothing useful on other GPUs or on Windows; `0` leaves the one-frame glitches on ANV. | Safe |
|
||||
| `bind_inc` (default `0`) | `1` (or `on`) prepares a draw from what changed since the draw before (the bind ops mark the slots whose bytes they changed) instead of from the whole bound state; `check` prepares every draw as before, takes every decision of `on` beside it, logs each kind of difference once and counts them in a `bind_inc:` line every 300 frames; `0` or `off`: as before. `check` also counts what changed between draws in that line. | Less work per draw on the render thread; a change the marks missed would leave a stale descriptor, a wrong picture or a lost device, which `check` would show first. Off by default: with it on, a GTX 1050 Ti lost the device at one place, after the validation layer reported a descriptor pool reset while a command buffer still used its sets; the cause is not found yet. | Caution |
|
||||
| `block_views_3d` (default `0`) | `1` gives 3D block-compressed images block views too. | On some AMD cards a GPU write past the end of the image's memory loses the Vulkan device, and the game stops. | Risky |
|
||||
| `deswizzle` (default `auto`) | Where block-linear textures are deswizzled: `auto` or `gpu` uses a compute pass where the texture's storage is an imported pool and the CPU elsewhere, `cpu` always uses the CPU, `check` uses the GPU and also deswizzles every upload on the CPU and compares the two. | `cpu` brings back the long frames on entering new areas (the replay thread deswizzles every texture); `check` waits for the GPU at every upload and is for testing only. The log names the mode in use. | Caution |
|
||||
|
||||
Reference in new issue
Block a user