Under Wine, characters' skin is missing once the card-buffer budget is full (VICTORY_CARD_BUFFERS_MB) #105

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

@⁠sil-kong on GitHub · 2026-11-25 14:15 UTC · original

Linux / Wine (RX 7900 XT, RADV, GE-Proton10-34's Wine, vkd3d-proton from Proton Experimental), 71652a2 with title memory copied (VICTORY_COPY_MEMORY=1, as #53 does under Wine) and without sparse copies (#69).

In the first room of the prison, characters' skin is missing (necks and faces not drawn, earrings floating) or present depending only on VICTORY_CARD_BUFFERS_MB. Same save, same spot, nothing else changed:

VICTORY_CARD_BUFFERS_MIN_MB VICTORY_CARD_BUFFERS_MB card buffers placed skin
(4) (2048) 381, 2047 MB: the cap is reached missing
1 (2048) 365, 2047 MB: the cap is reached missing
1 4096 521, 2950 MB drawn
(4) 4096 356, 1923 MB drawn

So the skin goes missing once the card-buffer budget is full and some large buffers stay ordinary copies. My guess is that a buffer the skin needs (a GPU-written one?) loses its writes on the copy path that buffers past the cap take, but I haven't found which buffer or where.

On Windows, with title memory used in place, far fewer buffers probably go through card buffers, which would explain why this doesn't show there. Under Wine, raising VICTORY_CARD_BUFFERS_MB (4096 here, 20 GB card) works around it; the frame rate is the same, and objects and walls load noticeably faster. A larger default when title memory is copied might be enough for most cards, but the copy path losing those writes is probably the real bug.

**@⁠sil-kong** on GitHub · 2026-11-25 14:15 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/105) Linux / Wine (RX 7900 XT, RADV, GE-Proton10-34's Wine, vkd3d-proton from Proton Experimental), `71652a2` with title memory copied (`VICTORY_COPY_MEMORY=1`, as #53 does under Wine) and without sparse copies (#69). In the first room of the prison, characters' skin is missing (necks and faces not drawn, earrings floating) or present depending only on `VICTORY_CARD_BUFFERS_MB`. Same save, same spot, nothing else changed: | `VICTORY_CARD_BUFFERS_MIN_MB` | `VICTORY_CARD_BUFFERS_MB` | card buffers placed | skin | |---|---|---|---| | (4) | (2048) | 381, 2047 MB: the cap is reached | missing | | 1 | (2048) | 365, 2047 MB: the cap is reached | missing | | 1 | 4096 | 521, 2950 MB | drawn | | (4) | 4096 | 356, 1923 MB | drawn | So the skin goes missing once the card-buffer budget is full and some large buffers stay ordinary copies. My guess is that a buffer the skin needs (a GPU-written one?) loses its writes on the copy path that buffers past the cap take, but I haven't found which buffer or where. On Windows, with title memory used in place, far fewer buffers probably go through card buffers, which would explain why this doesn't show there. Under Wine, raising `VICTORY_CARD_BUFFERS_MB` (4096 here, 20 GB card) works around it; the frame rate is the same, and objects and walls load noticeably faster. A larger default when title memory is copied might be enough for most cards, but the copy path losing those writes is probably the real bug.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:35:51 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.