GPU: adaptive inline texture uploads for startup movie flicker #456

Open
github-bot wants to merge 1 commit from github-bot/gh-456 into main AGit
Owner

@⁠VlREX on GitHub · 2026-11-25 01:03 UTC · original
VlREX:virex/motion-texture-inline → main · +144 −11 · 2 files · 1 commits · open

Problem

The startup logo can jump backward because view-memory hashes are throttled and the record-time clean check can omit a copy before a later submission-time refresh. Moving copies to prelude (#80) has reported world geometry regressions.

Change

Probe textures after a changed full hash and keep repeatedly changing textures hot for 24 frames. While active, hash at every eligible refresh and keep inline copies at the original first-use point even when the staging buffer looks clean during recording. Ordinary static textures revert to the existing skip and sparse polling remains bounded. Successful unlocked reads participate. Set VICTORY_TEXTURE_MOTION=0 to compare with baseline. No texture resolution or draw reductions. Complements #438 and does not solve the separate in-flight staging race (#272). Credits and matched A/B plan in docs.

Validation

Three Rust regression tests added; not executed here. An executed JS state model checked 265,216 cadence/expiry/wraparound/one-off assertions with no mismatch. Native tests and actual intro/world A/B are pending. A first unseen change may still appear late, and extra hashes/copies can cost time. No verified FPS or flicker improvement claimed. AI-assisted (ChatGPT).

**@⁠VlREX** on GitHub · 2026-11-25 01:03 UTC · [original](https://github.com/fxceless/victory-fork/pull/456) `VlREX:virex/motion-texture-inline` → `main` · +144 −11 · 2 files · 1 commits · open ## Problem The startup logo can jump backward because view-memory hashes are throttled and the record-time clean check can omit a copy before a later submission-time refresh. Moving copies to prelude (#80) has reported world geometry regressions. ## Change Probe textures after a changed full hash and keep repeatedly changing textures hot for 24 frames. While active, hash at every eligible refresh and keep inline copies at the original first-use point even when the staging buffer looks clean during recording. Ordinary static textures revert to the existing skip and sparse polling remains bounded. Successful unlocked reads participate. Set `VICTORY_TEXTURE_MOTION=0` to compare with baseline. No texture resolution or draw reductions. Complements #438 and does not solve the separate in-flight staging race (#272). Credits and matched A/B plan in docs. ## Validation Three Rust regression tests added; not executed here. An executed JS state model checked 265,216 cadence/expiry/wraparound/one-off assertions with no mismatch. Native tests and actual intro/world A/B are pending. A first unseen change may still appear late, and extra hashes/copies can cost time. No verified FPS or flicker improvement claimed. AI-assisted (ChatGPT).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:43:44 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 01:03 UTC · original · edited 2026-11-25 01:07 UTC

Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T01:07:40.372473Z f8a0241 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 01:03 UTC · [original](https://github.com/fxceless/victory-fork/pull/456#issuecomment-7149160196) · edited 2026-11-25 01:07 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"f8a0241d258ce2aee34bde063ac2688382583194","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-25T01:07:40.372473Z">2026-11-25T01:07:40.372473Z</relative-time> | `f8a0241` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
Author
Owner

@⁠oeirughrepuiohg on GitHub · 2026-11-25 03:47 UTC · original

In-game A/B of this PR (f8a0241d, cherry-picked onto fork c96b4f2b8 plus a few local changes). Setup: RTX 4070 Ti, Linux, Proton Experimental (vkd3d-proton), Series X files.

Method: from launch, about 6.5 window captures per second for 45 s, covering the opening collage intro and the loading art after it. A script flags any capture that matches an earlier one (2 to 6 captures back) much more closely than its immediate predecessor, after that predecessor had moved away. That is the "jumps backward" pattern. Fades through black are excluded.

launch VICTORY_TEXTURE_MOTION backward jumps
A 0 (PR off) 32 in the 45 s window, all in the animated intro: the zooms snap back to the exact picture from 0.3–0.6 s earlier, then forward again
B 0 (PR off) 17 in the loading art (this burst started after the intro)
C default (PR on) 0 (burst covered the intro and the loading art)
D default (PR on) 0 over the full 45 s, intro included

World cost: none seen. Five minutes in the steady world: PR on 6.32 fps (p50 155 ms), off 6.09 fps (p50 162 ms). The same build had a 6.0–6.7 fps spread over earlier launches, so that is no difference. Time to the world is unchanged at 130–141 s.

So on this setup the PR removes the intro's back-and-forth at no world cost.


Measured and written with AI assistance (Claude Code, Claude Opus 5.5).

**@⁠oeirughrepuiohg** on GitHub · 2026-11-25 03:47 UTC · [original](https://github.com/fxceless/victory-fork/pull/456#issuecomment-7152250132) In-game A/B of this PR (`f8a0241d`, cherry-picked onto fork `c96b4f2b8` plus a few local changes). Setup: RTX 4070 Ti, Linux, Proton Experimental (vkd3d-proton), Series X files. **Method:** from launch, about 6.5 window captures per second for 45 s, covering the opening collage intro and the loading art after it. A script flags any capture that matches an earlier one (2 to 6 captures back) much more closely than its immediate predecessor, after that predecessor had moved away. That is the "jumps backward" pattern. Fades through black are excluded. | launch | `VICTORY_TEXTURE_MOTION` | backward jumps | |---|---|---| | A | 0 (PR off) | 32 in the 45 s window, all in the animated intro: the zooms snap back to the exact picture from 0.3–0.6 s earlier, then forward again | | B | 0 (PR off) | 17 in the loading art (this burst started after the intro) | | C | default (PR on) | 0 (burst covered the intro and the loading art) | | D | default (PR on) | 0 over the full 45 s, intro included | **World cost:** none seen. Five minutes in the steady world: PR on 6.32 fps (p50 155 ms), off 6.09 fps (p50 162 ms). The same build had a 6.0–6.7 fps spread over earlier launches, so that is no difference. Time to the world is unchanged at 130–141 s. So on this setup the PR removes the intro's back-and-forth at no world cost. --- *Measured and written with AI assistance (Claude Code, Claude Opus 5.5).*
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/texture.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/456/head:github-bot/gh-456'
git switch 'github-bot/gh-456'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-456'
git switch 'github-bot/gh-456'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-456'
git switch 'github-bot/gh-456'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-456'
git switch 'main'
git merge --squash 'github-bot/gh-456'
git switch 'main'
git merge --ff-only 'github-bot/gh-456'
git switch 'main'
git merge 'github-bot/gh-456'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.