Skip to content

Add detached chunked texture uploads and fence retirement - #167

Merged
capz merged 4 commits into
feat/streamable-texture-assetsfrom
feat/detached-texture-upload
Nov 11, 2026
Merged

capz merged 4 commits into
feat/streamable-texture-assetsfrom
feat/detached-texture-upload

Conversation

@capz

@capz capz commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Textures larger than the bounded streaming buffer can now be uploaded into one private, variable-size native allocation, checked incrementally, and published without a global GPU wait. A failed, canceled or incomplete upload never exposes the destination. Existing DNTX and fixed-size StreamingTexture APIs retain their behavior.

This is SDK phase 2 of capz/hypercube-engine#11, stacked on #166. The managed owner holds source and destination through the worker/application continuation, rejects missing/duplicate/misaligned ranges and CRC failures, and provides an explicit draining abort. Native guards keep CPU staging separate from GX publication. Texture2D.TryDisposeAfterFence releases completed GPU readers without another wait. UvTransform.Then preserves exact affine composition for animated UVs and per-level gutters.

Validation:

  • Native 1-MiB upload through a 32-KiB source: holds, partial/duplicate/range/alignment rejection, publish timing, abort, physical bytes and fence disposal; no staging/publication GPU waits.
  • Debug and Release managed AOT with GC stress: CRC failure, cancellation, drain, source disposal, affine UV composition and GPU fences.
  • Existing graphics AOT, native resource boundaries, texture replacement, native-buffer CRC and TextureStreamingTests pass.
  • GameCube PowerPC build and 25-second Dolphin OGL capture pass: seven RGBA8 and seven CMPR publications, eight pixel patches checked across 30 consecutive tail frames.
  • Real GameCube SD/disc/audio timing remains a separate hardware acceptance gate; no emulator timing is represented as hardware performance.

@capz
capz merged commit 878b64a into feat/streamable-texture-assets Nov 11, 2026
16 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