Include: MTrv0/VIctory-AMD-UM acf59525a (Re-trunk Dom) #20

Open
opened 2026-12-01 10:25:53 +00:00 by Rojikku · 1 comment
Rojikku commented 2026-12-01 10:25:53 +00:00 (Migrated from github.com)
Contributor

Imported from Fayberr/Victory-United. Originally posted by Rojikku on 2026-12-01T10:25:53Z.


github.com/MTrv0/VIctory-AMD-UM@acf59525af

Licence of that code

GPL-3.0

What it fixes, and what you measured

Dominator has missing trunk panel, see through to road.

root-views-reach-past-the-4mib-line.patch

Claude Notes:
Vehicle panels missing / see-through: root views near a 4 MiB line reach past it** (root-views-reach-past-the-4mib-line.diff, VICTORY_ROOT_REACH_KB, default 1024, 0 = old behaviour)

Not our find. It's MTrv0's fix (MTrv0/VIctory-AMD-UM acf59525a, reach raised to 1 MiB in e923457e3), also ported by segfaulter0 (775c16e73). We ported the shadow.rs/draw.rs part to dev.

The title binds a mesh's vertex block as a root SRV/CBV with no length. Outside buffer objects such a view gets the window of its 4 MiB cell, so a view that starts close to the cell's end reads zeros past the line. In game: car panels missing at random (you see into the trunk / through to the road), and MTrv0 also saw doors and hoods gone and bodies black in full sun.

With the fix, when the cell leaves less than the reach after the view's address, the window instead spans the line (reach bytes on each side). Root UAVs and views with a length are unchanged. Includes a unit test for the window choice.

Tested from one save parked behind the car, camera turned to the rear, one capture per run:

Both MTrv0 commits are big and bundle many fixes; the panel fix is just the root-view reach part. Our dev diff takes only that part.

Rules

  • It contains no game files or data and no leaked, stolen or pirated material.
<!-- greyfinch-sync:Fayberr/Victory-United:issue:6718089468 --> Imported from [Fayberr/Victory-United](https://github.com/Fayberr/Victory-United/issues/20). Originally posted by [Rojikku](https://github.com/Rojikku) on 2026-12-01T10:25:53Z. --- ### Link to the pull request or commit https://github.com/MTrv0/VIctory-AMD-UM/commit/acf59525af89c0c76444a95191c42c19618870d7 ### Licence of that code GPL-3.0 ### What it fixes, and what you measured Dominator has missing trunk panel, see through to road. [root-views-reach-past-the-4mib-line.patch](https://github.com/user-attachments/files/35676195/root-views-reach-past-the-4mib-line.patch) Claude Notes: Vehicle panels missing / see-through: root views near a 4 MiB line reach past it** (`root-views-reach-past-the-4mib-line.diff`, `VICTORY_ROOT_REACH_KB`, default 1024, `0` = old behaviour) Not our find. It's MTrv0's fix (MTrv0/VIctory-AMD-UM acf59525a, reach raised to 1 MiB in e923457e3), also ported by segfaulter0 (775c16e73). We ported the shadow.rs/draw.rs part to dev. The title binds a mesh's vertex block as a root SRV/CBV with no length. Outside buffer objects such a view gets the window of its 4 MiB cell, so a view that starts close to the cell's end reads zeros past the line. In game: car panels missing at random (you see into the trunk / through to the road), and MTrv0 also saw doors and hoods gone and bodies black in full sun. With the fix, when the cell leaves less than the reach after the view's address, the window instead spans the line (reach bytes on each side). Root UAVs and views with a length are unchanged. Includes a unit test for the window choice. Tested from one save parked behind the car, camera turned to the rear, one capture per run: - Main + our patches: panel missing in 4 of 4 runs without the fix, drawn in 4 of 4 with it. - Dev: missing without, drawn with. - MTrv0, the original fix (2026-11-28): https://github.com/MTrv0/VIctory-AMD-UM/commit/acf59525af89c0c76444a95191c42c19618870d7 - MTrv0, reach raised to 1 MiB, which is the setting we use (2026-11-29): https://github.com/MTrv0/VIctory-AMD-UM/commit/e923457e309521a18f08a393b942c3b09729cc20 - segfaulter0's port of it (branch opt/rt-perf-v1): https://github.com/victory-linux/victory-proton/commit/775c16e735321c927c5531f89e6b16a683b304ff Both MTrv0 commits are big and bundle many fixes; the panel fix is just the root-view reach part. Our dev diff takes only that part. ### Rules - [x] It contains no game files or data and no leaked, stolen or pirated material.
Fayberr commented 2026-12-01 11:14:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Fayberr/Victory-United. Originally posted by Fayberr on 2026-12-01T11:14:52Z.


Thanks for porting this and testing it against both main and dev. Landed on dev with VICTORY_ROOT_REACH_KB defaulting to 1024 (0 for the old behavior):
github.com/Fayberr/Victory-United@589e5401d

I'll run a quick check on Windows before it moves to main.

<!-- greyfinch-sync:Fayberr/Victory-United:comment:7309374905 --> Imported from [Fayberr/Victory-United](https://github.com/Fayberr/Victory-United/issues/20#issuecomment-7309374905). Originally posted by [Fayberr](https://github.com/Fayberr) on 2026-12-01T11:14:52Z. --- Thanks for porting this and testing it against both `main` and `dev`. Landed on `dev` with `VICTORY_ROOT_REACH_KB` defaulting to `1024` (`0` for the old behavior): https://github.com/Fayberr/Victory-United/commit/589e5401d I'll run a quick check on Windows before it moves to `main`.
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
Fayberr/Victory-United#20
No description provided.