Skip to content

Stream shared texture LOD residency through the asset scheduler - #14

Merged
capz merged 2 commits into
feat/progressive-texture-familiesfrom
feat/progressive-texture-streaming
Nov 11, 2026
Merged

capz merged 2 commits into
feat/progressive-texture-familiesfrom
feat/progressive-texture-streaming

Conversation

@capz

@capz capz commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Shared texture families now become visible at their coarsest authored level, then replace that image asynchronously as quality demand changes. Each family keeps one active MEM1 image; one detached upload and fence-retired old images are counted separately. Failed, canceled, corrupt and memory-rejected upgrades preserve the visible fallback.

This implements streaming integration from #11, stacked on #12. Generic levels share ResourceScheduler, WorldStreamer, AssetStream, native staging and the guarded ARAM cache. Gameplay can preempt between chunks; a newly visible coarse family drains/discards an existing upgrade so the single destination cannot deadlock. Draw bindings resolve generation-checked leases immediately before submission and compose exact authored/gutter transforms for both texture slots. V1 worlds and their fixed-size TexturePool remain compatible.

The SDK pin moves to the tested source from capz/DolphinDotNet#166 and capz/DolphinDotNet#167. PR package verification builds an isolated dependency feed from that exact source revision; source-preview packages cannot be published. Public package release still requires the matching SDK NuGet release.

Validation:

  • Debug/Release AOT with native graphics/storage/ARAM and GC stress: coarse-first presentation, sparse/pair semantics, CRC and short-read rejection, cancellation drain, stale leases, pressure fallback, exact single-image accounting and zero-byte trim.
  • Mixed v2 world: collision preemption during a >128-KiB upload and a late visible coarse family arriving during promotion; permanent world/staging bytes are counted.
  • Native wait accounting: texture replacement adds no waits; only resource and device shutdown wait in the standalone scenario.
  • PowerPC build and 60-second Dolphin OGL/DSP-LLE capture: 12 independent pixel patches, both texture slots, rotated/nonuniform gutter UVs, camera reversals, 25 stale drains, budget deferral, final zero-byte cleanup and sustained non-silent audio. Emulator observations explicitly make no hardware-performance claim.
  • Existing v1 tests (including 1,050,052 rendering assertions), GameCube cache checks, 44 Python tests and relocated NuGet consumer validation pass. CI rebuilds both native configurations and repeats the rendered/audio acceptance run.

Physical GameCube SD2SP2/disc/audio pressure and p95/p99/readiness latency acceptance remain a hardware gate for production tuning.

@capz
capz merged commit ddbdd71 into feat/progressive-texture-families Nov 11, 2026
11 of 12 checks passed
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