Skip to content

GPU: refresh partially mapped textures on known writes and retain staged hash - #395

Open
VlREX wants to merge 1 commit into
fxceless:mainfrom
VlREX:virex/texture-partial-refresh
Open

VlREX wants to merge 1 commit into
fxceless:mainfrom
VlREX:virex/texture-partial-refresh

Conversation

@VlREX

@VlREX VlREX commented Nov 25, 2026

Copy link
Copy Markdown

Problem

Partially mapped textures can observe a new guard write, advance the journal cursor, then discard the refresh because the 30-frame partial polling throttle has not expired. Also, a rejected all-zero partial read updates the cached hash even though the staging data is unchanged. A subsequent fully mapped zero texture can therefore be skipped as if already staged.

Fix

Bypass partial polling throttling for confirmed new writes, reset the partial poll timestamp when fully mapped, and keep the staged hash unchanged when rejecting an all-zero partial read. Keep unchanged polling throttled. No change to the 8-frame guard hash policy, detiling or relay scheduling. Related to #89 and #264; does not duplicate #191/#207 or the adaptive hash policy in #343.

Validation

Two Rust regression tests added. Executed JS state models: 32,768 throttle checks and 52,488 partial-hash transitions over 6,561 eight-step sequences, with no disagreements/invariant violations. These are models, not compiled Rust or GPU tests. Native tests and visual A/B validation pending. More frequent reads of actively changing partial textures may increase CPU work; no FPS or skin-fix claim. No game data or new dependencies. AI-assisted (ChatGPT).

@VlREX
VlREX marked this pull request as ready for review November 25, 2026 00:38
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: 🔄 Running

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-25T00:38:10.842416Z 336b842 Draft marked ready
ℹ️ 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.

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.

1 participant