Repository navigation
Conversation
Experimental opt-in adaptation of deferred descriptor materialization from DexNom/VIctory 2e01ab4760db91820ef5f9a9f85761f83cd6b5d0. Preserve host resource ownership and restore pending active-heap descriptors before submission. Add two targeted D3DMetal regression tests.
|
Thank you for the draft and the measurements. Before it is ready: the new tests need to skip by default (when the variable is off or no host exists, like the neighbouring tests) and not panic in a plain |
|
Update: main moved a lot (upstream merged in #202, plus #169, #174, #200). Upstream's own work on placed unordered views and view addresses for dynamic slots touches the same code in |
Summary
Experimental, opt-in macOS adaptation of deferred texture
descriptor materialization, based on merged main at
485b230ef596898cdd390cd5d9205b76e4289b82.This draft is intended to gather feedback on startup
memory pressure on Apple Silicon with 16 GB unified memory.
Inspired by DexNom/VIctory at
2e01ab4760db91820ef5f9a9f85761f83cd6b5d0.Related: #50.
Changes
texture descriptors.
direct-indexed heaps before submission.
descriptor materializations.
mechanisms.
The experiment is disabled by default.
Enable it with:
Validation
Environment:
Two targeted tests passed under real D3DMetal:
Each test ran separately with one test thread,
with zero failures and zero ignored tests.
The full regression suite has not yet been validated
for this experimental patch.
Local observations
Clean merged main:
from title memory 0 / 58 / 0 MB.
The GPU-written category describes resource creation
capabilities, not proof of an actual GPU write.
Experimental Series X run:
descriptors.
resolved descriptors.
Experimental Series S run using the same runtime:
remained black.
These observations are not a controlled benchmark.
Console profiles, initial memory, workload and stopping
policies differed between runs.
Known limitations / review requested
many textures at once, recreating the memory spike.
heap destruction and materialization failure paths
require additional review and regression coverage.
null or stale descriptor.
for all descriptor usage patterns.
partial image stores and mesh-output fixes are
intentionally outside this PR.
Attribution
Deferred descriptor materialization principle:
https://github.com/DexNom/VIctory/tree/2e01ab4760db91820ef5f9a9f85761f83cd6b5d0
This is a local adaptation to the macOS fork, not a
wholesale merge of the Windows implementation.
AI-assisted engineering and analysis.
Tests executed locally.
Only source code and synthetic regression tests are
included. No game files, game-derived binaries,
Apple binaries, screenshots or personal paths.
Draft for design feedback; not ready for merge.