[Perf] (Magma): small busy wire buffers are renamed from a host shadow instead of a staged copy that ends the pass (FCL WriteWireBuffer 0.100 -> 0.077 ms/frame).

This commit is contained in:
2026-10-08 06:59:40 -04:00
parent 855b3b5009
commit 748ffc31c5
7 changed files with 358 additions and 14 deletions
@@ -2371,8 +2371,10 @@ namespace MobileGL::MG_Backend::DirectVulkan {
WireDeclineTally::Dump("shutdown");
// The SPIR-V screen's engagement proof: a decline-free session above reads as "screened
// and valid" only with this count beside it (distinct modules, process-wide).
MGLOG_I("MGWIRE-VCONV[shutdown] converted=%llu reused=%llu", static_cast<unsigned long long>(m_wireStreamsConverted),
static_cast<unsigned long long>(m_wireStreamsReused));
MGLOG_I("MGWIRE-VCONV[shutdown] converted=%llu reused=%llu renamedWrites=%llu",
static_cast<unsigned long long>(m_wireStreamsConverted),
static_cast<unsigned long long>(m_wireStreamsReused),
static_cast<unsigned long long>(m_bufferManager.GetWireRenameCount()));
MGLOG_I("MGWIRE-SPIRV-SCREEN[shutdown] modulesValidated=%llu",
static_cast<unsigned long long>(ProgramFactory::DriverModuleValidatorRuns()));
DestroyWireDrawPass();