Skip to content

D3D12.X: cache positive mirror range lookups - #166

Draft
bmjask wants to merge 1 commit into
stack/162-retain-disk-blobsfrom
stack/163-cache-mirror-ranges
Draft

bmjask wants to merge 1 commit into
stack/162-retain-disk-blobsfrom
stack/163-cache-mirror-ranges

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #165.

This is an internal draft stack in bmjask/xcl; it is not an upstream merge request.

What and why

This unit isolates d3d12.x: cache positive mirror range lookups as one reviewable step in the redesign.

What is in it

  • b5e4235a is the cleaned-stack form of integrated commit ec226740.

The patch content is preserved; only ancestry changed to omit a canceled add/revert sequence.

Tested

Tests were not rerun while packaging this already-integrated change into the draft stack.

Regression run

Not run during stack packaging.

Not tested

  • Windows MSVC build and test suite
  • D3D12 GPU execution
  • scripts/smoke.ps1 main/head comparison

AI use

Codex, GPT-5.6-sol, removed canceled ancestry, created the stack branch, and drafted this description. It did not author new code during stack packaging.

@bmjask
bmjask force-pushed the stack/162-retain-disk-blobs branch from 770b2b6 to 9fb2b90 Compare November 27, 2026 00:45
@bmjask
bmjask force-pushed the stack/163-cache-mirror-ranges branch 2 times, most recently from 6cfd946 to 76a93af Compare November 27, 2026 01:01
@bmjask
bmjask force-pushed the stack/162-retain-disk-blobs branch 2 times, most recently from 74bd86e to 840718b Compare November 27, 2026 05:14
@bmjask
bmjask force-pushed the stack/163-cache-mirror-ranges branch from 76a93af to 4ac83da Compare November 27, 2026 05:14
Every mirrored vertex or index bind and draw searched the append-only mirror table behind one global mutex. Once a title created a mirror, repeated hot-path lookups serialized even though existing entries never change.

Keep a complete ordered mirror snapshot per thread and answer positive lookups locally. Misses still lock and refresh from the authoritative table, preserving first-match range selection and immediate discovery before creating a mirror; the no-mirror case rejects from the existing byte counter.

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/163-cache-mirror-ranges branch from 4ac83da to e0c3161 Compare November 27, 2026 12:35
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