Linux/Proton (RADV, RX 7900 XTX, 5800X3D) on c9c932c: renderer port 6 moves the guards' time into Wine's own lock, port 7 changes skin shading #270

Open
opened 2026-11-26 14:00:51 +00:00 by github-bot · 0 comments
Owner

@⁠Serph91P on GitHub · 2026-11-26 13:57 UTC · original

Same checkpoint scene, steady state (60–100 s after the first world frame), diagnostics build, Series X profile:

ms/frame median waiting for the guards changing protections
no ports 67.0 19.7 ms 13.4 ms
VICTORY_PORT_GUARD=1 71.8 0.2 ms 43.8 ms
+ VICTORY_PORT_JOURNAL=1 65.9 3.3 ms 53.0 ms
  • Port 6 does what it says: the wait for the guards' lock goes. Under Wine every VirtualProtect, GetWriteWatch, VirtualQuery and write fault of the process takes one mutex (virtual_mutex in ntdll's virtual.c), so protection changes made by several threads at once queue there instead. A bare mprotect of 64 KiB costs 2.5–6 µs natively; the layer sees about 40 µs a change.
  • What helped here instead is fewer calls: Wine refuses a protection change that spans two views, so a run over views was one failed call plus one per block. Cutting runs at view boundaries first took the steady frame from 71.0 to 63.3 ms (one run each, so partly noise).
  • With port 7 on, skin looked waxy in the same scene; without it the picture was as before. One observer, one scene, not captured yet.

Single runs of 160 s each, one machine. Not tested: Windows, NVIDIA. No game data.

**@⁠Serph91P** on GitHub · 2026-11-26 13:57 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/270) Same checkpoint scene, steady state (60–100 s after the first world frame), diagnostics build, Series X profile: | | ms/frame median | waiting for the guards | changing protections | |---|---|---|---| | no ports | 67.0 | 19.7 ms | 13.4 ms | | `VICTORY_PORT_GUARD=1` | 71.8 | 0.2 ms | 43.8 ms | | `+ VICTORY_PORT_JOURNAL=1` | 65.9 | 3.3 ms | 53.0 ms | - Port 6 does what it says: the wait for the guards' lock goes. Under Wine every `VirtualProtect`, `GetWriteWatch`, `VirtualQuery` and write fault of the process takes one mutex (`virtual_mutex` in ntdll's `virtual.c`), so protection changes made by several threads at once queue there instead. A bare `mprotect` of 64 KiB costs 2.5–6 µs natively; the layer sees about 40 µs a change. - What helped here instead is fewer calls: Wine refuses a protection change that spans two views, so a run over views was one failed call plus one per block. Cutting runs at view boundaries first took the steady frame from 71.0 to 63.3 ms (one run each, so partly noise). - With port 7 on, skin looked waxy in the same scene; without it the picture was as before. One observer, one scene, not captured yet. Single runs of 160 s each, one machine. Not tested: Windows, NVIDIA. No game data.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 14:00:51 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/avatarmanz--VIctory-7900XTX#270
No description provided.