Repository navigation
VKD3D-Proton macOS 6.0
VKD3D-Proton macOS 6.0 is built from main (2178b90, #22 and two later commits). Most of it is about speed: pipelines compile without blocking, and shaders converted by Metal Shader Converter are kept on disk. ExecuteIndirect stays on converted pipelines and runs only the counted draws and dispatches. Tessellation of DXIL shaders runs in the converter's emulation. Fence waits wake as soon as the GPU signals.
Pipelines and shaders
- Pipelines compile while their creation returns. Deferred pipelines are on by default: the creating thread starts each one and Metal's completion handler finishes it, so no thread waits on Metal. Metal compiles with every core.
- Converted shaders are kept on disk beside the pipeline cache. They are built for this GPU family and macOS, without DXIL debug information. When the in-memory cache fills, it drops only its oldest quarter. A DXBC shader is converted to DXIL once and reused with every root signature.
- Tessellation of DXIL shaders (vertex, hull and domain) goes through Metal Shader Converter's object and mesh emulation as a mesh pipeline. Before, it ran SPIR-V compute passes and restarted the render pass for every tessellated draw.
VKD3D_MSC_TESSELLATION=0keeps it on SPIR-V. Isolines, DXBC tessellation and ExecuteIndirect with such a PSO still use SPIR-V.
ExecuteIndirect
- Root arguments keep converted pipelines: command signatures write root constants and root descriptor addresses into Metal Shader Converter's top-level argument buffer. Before, such an ExecuteIndirect fell back to the PSO's SPIR-V pipeline, compiled at first use.
- Count buffers: indirect draws run only the counted draws, encoded into an indirect command buffer by a kernel outside the render pass. Dispatch-only signatures run only the counted dispatches.
- No render pass restarts: ExecuteIndirect inside a render pass no longer ends it. Before, every attachment was stored and reloaded once per ExecuteIndirect.
- 25 or more push-constant-only draws run from one indirect command buffer.
VKD3D_MSC_EXECUTE_INDIRECT=0turns converted ExecuteIndirect off.
Synchronization, encoding and present
- Fence waits wait on the timeline semaphore's Metal shared event directly instead of through a listener on another thread (
MVK_CONFIG_DIRECT_SEMAPHORE_WAIT=0keeps the listener). - Barriers: transitions between dispatches, and barriers from compute into other stages, keep the compute encoder. Enhanced barriers keep the render pass open, as ResourceBarrier does. CPU-only descriptor heaps are host-only pools.
- Command buffer prefill (encoding a command list when its recording ends, on the recording thread) is opt-in. As a default it stalled Subnautica 2's GPU queue. Recording more command lists than half the Metal queue before submitting no longer freezes
vkEndCommandBuffer. - SyncInterval 2 to 4 now holds frames (VK_EXT_present_timing relative targets). Before, it presented every refresh, like 1.
MVK_CONFIG_RAY_TRACING_MIN_APPLE_FAMILYandMVK_CONFIG_CONSERVATIVE_RASTERIZATION=0can hide two slow emulated features: ray tracing below a given GPU family, and conservative rasterization. Neither option is set by default, so both features are still reported.
DLSS and DXVK
- DLSS Super Resolution passes its bias mask (MetalFX's reactive mask), the MVJittered flag and the subrect bases of each input and the output to MetalFX. MetalFX temporal scalers are created without stopping the queue, within the GPU's input scale range.
- Assetto Corsa with Custom Shaders Patch no longer crashes with MSAA under FEX. Its detour of
ResolveSubresourcelanded on ARM64EC code; DXVK's hot-patchable entry, backported, gives it an x86_64 one. - The ARM64X NGX core and NVAPI carry Wine's builtin marker, as on x86_64.
artifacts/evidence/load-time-and-encoding-costs.md has the functional harness (139 of 156, unchanged) and perf probe results against the MetalSharp Wine 7.0 lane.
Built from 2178b90. Each package holds its files, their licenses and SHA256SUMS.
- vkd3d-proton-v6.0-x86_64: VKD3D-Proton's
d3d12.dllandd3d12core.dll, with DXVK'sdxgi.dll,d3d11.dllandd3d10core.dll, for x86_64 Windows programs (x86_64-windows), and the lane's own NGX core and NVAPI (nvngx.dll,nvapi64.dll) as x86_64 Wine builtins, which run DLSS Super Resolution and Ray Reconstruction on MetalFX in an x86_64 Wine (MetalSharp's, under Rosetta). Stage them together. - vkd3d-proton-v6.0-arm64: for an arm64 Wine that runs x86_64 programs with FEX (MetalSharp Wine): VKD3D-Proton's
d3d12.dllandd3d12core.dllas ARM64X (aarch64-windows, loaded by x86_64 programs as ARM64EC), with DXVK's x86_64dxgi.dll,d3d11.dllandd3d10core.dll(x86_64-windows), and the lane's own NGX core and NVAPI (nvngx.dll,nvapi64.dll, ARM64X), which run DLSS Super Resolution and Ray Reconstruction on MetalFX. - moltenvk-v6.0-universal: the universal (arm64 + x86_64), ad-hoc signed
libMoltenVK.dylibandMoltenVK_icd.jsonboth lanes run on, with Apple's Metal Shader Converter library (libmetalirconverter.dylib, unmodified, Apple-signed), which MoltenVK uses to convert DXIL compute, vertex, mesh, amplification and pixel shaders for VKD3D-Proton (METALSHARP_MSC=0turns it off), and DirectXShaderCompiler's DXBC to DXIL converter (libdxbcconverter.dylib, NCSA), which hands it DXBC shaders too (METALSHARP_MSC_DXBC=0keeps them on SPIR-V). It runs MetalFX's scalers for VKD3D-Proton's and DXVK's DLSS and swap chain upscaling (mvk_metalfx.h).