Avoid refreshing current alias shadows after a relay merge #1346

Open
opened 2026-11-26 17:30:03 +00:00 by Marukooh · 0 comments
Marukooh commented 2026-11-26 17:30:03 +00:00 (Migrated from github.com)
Contributor

Imported from fxceless/victory-fork. Originally posted by Marukooh on 2026-11-26T17:30:03Z.


A relay merge writes title memory and updates the shadow that owns the merge. Other shadows of the same backing may then refresh the same bytes from the title allocation. A local prototype propagated just the merged bytes to a current sibling and advanced that sibling's stamp only if the pre-merge stamp matched. A stale sibling remained stale.

On a local Series X branch with RTX 5070 Ti / Proton, an off/on/on/off comparison changed watched refresh from about 121 to 103–110 MB/frame. Frame medians were 115.1 / 118.5 ms off and 110.3 / 108.2 ms on. No run lost the device. Visual parity needs checking and these measurements predate e4245f3.

The check for main should distinguish a current sibling from a stale one and cover view offsets, a boundary crossing and a concurrent title write. This is about the CPU shadow after the relay merge. #1131 covers a separate queue-ordered remapping hazard.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6631988431 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1346). Originally posted by [Marukooh](https://github.com/Marukooh) on 2026-11-26T17:30:03Z. --- A relay merge writes title memory and updates the shadow that owns the merge. Other shadows of the same backing may then refresh the same bytes from the title allocation. A local prototype propagated just the merged bytes to a current sibling and advanced that sibling's stamp only if the pre-merge stamp matched. A stale sibling remained stale. On a local Series X branch with RTX 5070 Ti / Proton, an off/on/on/off comparison changed watched refresh from about 121 to 103–110 MB/frame. Frame medians were 115.1 / 118.5 ms off and 110.3 / 108.2 ms on. No run lost the device. Visual parity needs checking and these measurements predate e4245f3. The check for main should distinguish a current sibling from a stale one and cover view offsets, a boundary crossing and a concurrent title write. This is about the CPU shadow after the relay merge. #1131 covers a separate queue-ordered remapping hazard.
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
fxceless/victory-fork#1346
No description provided.