Repository navigation
Conversation
Bring the vertex index mask and the synthetic raster tests from Marvisak/VIctory#1718 (c0228d939ec1c206313f7e8cb44c922081b6f538) to Flamingo. Keep the fork's lane bounds and unwritten vertex guards. The edge flag occupies the tenth bit of each packed corner. Co-authored-by: timorjay <203254134+timorjay@users.noreply.github.com>
realblastex
pushed a commit
that referenced
this pull request
Nov 25, 2026
…ins; Clippy clean - victory-fork main (f85101b): a submit thread, a copy queue for fetches, safer indirect windows, the first room's descriptors mirrored, and the shader cache keyed on the translator instead of the executable. - The mesh primitive edge-flag fix: a corner's index is 9 bits, the 10th is its edge flag (pull request #1, a port of upstream VIctory #1718). - victory-amd: smaller mips detile from the texture's start; DirectStorage page arrays read when a request runs. - Opt-in, from Belobug's fork (GPL-3.0): VICTORY_AMBIENT, FLAMINGO_QUAD_HELPERS. - Clippy clean on both CI runs; progress log through run 85. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
Thank you for this! The edge-flag mask fix and its tests are in main as part of dc0c736 (a port of upstream VIctory #1718), credited in the README's Credits section. Closing since the change has landed. |
realblastex
pushed a commit
that referenced
this pull request
Nov 25, 2026
…ins; Clippy clean - victory-fork main (f85101b): a submit thread, a copy queue for fetches, safer indirect windows, the first room's descriptors mirrored, and the shader cache keyed on the translator instead of the executable. - The mesh primitive edge-flag fix: a corner's index is 9 bits, the 10th is its edge flag (pull request #1, a port of upstream VIctory #1718). - victory-amd: smaller mips detile from the texture's start; DirectStorage page arrays read when a request runs. - Opt-in, from Belobug's fork (GPL-3.0): VICTORY_AMBIENT, FLAMINGO_QUAD_HELPERS. - Clippy clean on both CI runs; progress log through run 85. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This backports the mesh primitive index fix from Marvisak/VIctory#1718 by tjthebigbearcat-hub to Flamingo at
f6554b6. Each corner has a nine-bit vertex index followed by an edge flag. Flamingo's ten-bit mask includes that flag in the index, so the existing vertex bounds check culls a valid triangle. This change preserves the fork's bounds checks and imports the upstream synthetic regression tests.Reproduction and verification
With the upstream tests added to the unchanged Flamingo renderer, the edge-flagged triangle drew 0 of 256 pixels on the default hardware device. With the mask fixed, all 256 pixels matched the expected color on hardware and on the Windows software renderer (WARP). The explicitly culled control drew zero pixels.
cargo test --locked --offline --profile diag -p victory-shader edge_flag -- --test-threads=1 --nocapturepassed both targeted tests.cargo build --locked --offline --profile diag -p victorysucceeded. The asset policy check passed for 188 files.In-game comparison
RTX 5090 D v2 (617.42), Ryzen 7 9800X3D, Windows 11 build 26300. Each trial used the same checkpoint, a fresh offline Windows Sandbox with 16 GiB guest memory, the Series S profile, and the optimized build without the diagnostics feature. The game's watchdog remained enabled. For each warmed trial, the shader and driver pipeline caches came from that build's preceding cold run. The learned list of pipelines to start early was omitted for both warmed trials, as in the first-use scheduling comparison.
FPS is from 90 seconds of window-reported frame times, sampled about every 1.2 seconds after the scene and movement prompt both appeared. Load times include restoring the cache and exclude sandbox boot. One run per configuration. The synthetic test isolates the edge-flag regression. In the warmed, first-use comparison, the backported build showed the floor, the door, and the player's red uniform together after turning away from the window. The unmodified build showed much darker surfaces and clothing in that view. The warmed backport gave up about 1.2 FPS in the stationary window sample. Some facial material and lighting issues remain.
AI-assisted port and testing with Codex. The original fix and tests retain their upstream author credit.