gpu(metal): build pipelines off the title's thread, with standins resolved at bind (XCL pso_async) #643
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T21:34:27Z.
What
Pipeline creation goes through the MetalIRConverter synchronously on the title's thread: 23k calls at d3d12 slot 0x1c8 before the 18 s int3 (docs/native-host.md), and MacBox measured presentation stopping ~132 s into a GTA VI loading run while native pipelines kept compiling — their title only survived compile storms once pipelines were built off the title's thread (xcl crates/xcl/src/hle/d3d12x/pso_async.rs): stand-in PSO handles handed back to the title at creation, the real build queued as a background job, and the standin resolved to the real object at bind, holding the title thread only there (
title_held, which their sleep hold then excludes from title Sleep accounting — see the sleep-hold issue).What this changes (measure first)
Sleepaccounting excludes held time (depends on the sleep-hold issue).How it was tested
Sources: MacBox crates/xcl/src/hle/d3d12x/pso_async.rs (title_held, submit, resolve_for_bind), README "Tests and current status" loading runs.