Add Metal I/O texture cache to the Metal 4 renderer #52

Manually merged
github merged 1 commit from gh-pr/52/head into gh-pr/52/base 2026-11-26 20:06:02 +00:00
Owner

@⁠maple-quartz18 on GitHub · 2026-11-23 14:46 UTC · original
maple-quartz18:feature/metal-io-cache-v2 → master · +852 −27 · 3 files · 1 commits · merged 2026-11-23 15:09 UTC

Summary

  • Add a versioned GPU-ready texture cache for Metal 4 RGBA uploads.
  • Load cache entries through MTLIOCommandQueue and bypass staging copies on cache hits.
  • Validate magic/version, image identity, color space, mip layout, file size, and CRC.
  • Write entries asynchronously, cap the cache at 2 GiB, trim completed .rgba entries, and preserve active writer temp files.
  • Wire the cache to the configured SixNG work directory with explicit logging and native staging fallback when cache initialization fails.

Verification

  • cargo check --locked -p sixng-gui --features metal4-poc
  • Full GUI suite: 24 passed, 1 ignored.
  • Focused Metal 4 suite: 4 passed, including repeated Metal I/O cache-hit round trips.
  • Full Metal 4 app startup and explicit cache-directory/failure-path verification.
**@⁠maple-quartz18** on GitHub · 2026-11-23 14:46 UTC · [original](https://github.com/holdmysocks/SixNG/pull/52) `maple-quartz18:feature/metal-io-cache-v2` → `master` · +852 −27 · 3 files · 1 commits · merged 2026-11-23 15:09 UTC ## Summary - Add a versioned GPU-ready texture cache for Metal 4 RGBA uploads. - Load cache entries through `MTLIOCommandQueue` and bypass staging copies on cache hits. - Validate magic/version, image identity, color space, mip layout, file size, and CRC. - Write entries asynchronously, cap the cache at 2 GiB, trim completed `.rgba` entries, and preserve active writer temp files. - Wire the cache to the configured SixNG work directory with explicit logging and native staging fallback when cache initialization fails. ## Verification - `cargo check --locked -p sixng-gui --features metal4-poc` - Full GUI suite: 24 passed, 1 ignored. - Focused Metal 4 suite: 4 passed, including repeated Metal I/O cache-hit round trips. - Full Metal 4 app startup and explicit cache-directory/failure-path verification.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:06:00 +00:00
github manually merged commit 2afbefafbc into gh-pr/52/base 2026-11-26 20:06:02 +00:00
Author
Owner

@⁠maple-quartz18 on GitHub · 2026-11-24 11:58 UTC · original

It would be great if someone could implement DirectStorage GPU fast-loading support on Windows. The implementation should integrate with the existing asset upload, staging, and residency paths while preserving the current loading behavior on other platforms.

**@⁠maple-quartz18** on GitHub · 2026-11-24 11:58 UTC · [original](https://github.com/holdmysocks/SixNG/pull/52#issuecomment-7130800820) It would be great if someone could implement DirectStorage GPU fast-loading support on Windows. The implementation should integrate with the existing asset upload, staging, and residency paths while preserving the current loading behavior on other platforms.
This discussion has been locked. Commenting is limited to contributors.
No description provided.