Skip to content

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

Open
VlREX wants to merge 1 commit into
fxceless:mainfrom
VlREX:virex/motion-texture-inline
Open

VlREX wants to merge 1 commit into
fxceless:mainfrom
VlREX:virex/motion-texture-inline

Conversation

@VlREX

@VlREX VlREX commented Nov 25, 2026

Copy link
Copy Markdown

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).

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
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.

@oeirughrepuiohg

Copy link
Copy Markdown

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants