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 13:57:24 +00:00 by Serph91P · 0 comments
Serph91P commented 2026-11-26 13:57:24 +00:00 (Migrated from github.com)
Contributor

Imported from avatarmanz/VIctory-7900XTX. Originally posted by Serph91P on 2026-11-26T13:57:24Z.


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.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:6628209495 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/issues/270). Originally posted by [Serph91P](https://github.com/Serph91P) on 2026-11-26T13:57:24Z. --- 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.
Sign in to join this conversation.
No labels
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.

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