From b20c255986162c4d38b221847a52cc768dc4ca79 Mon Sep 17 00:00:00 2001 From: bmjask <> Date: Wed, 25 Nov 2026 23:50:07 -0800 Subject: [PATCH] D3D12.X: include texture refresh in submit stall timing SubmitPreparation started after title texture refresh, so write-watch scanning, detiling, and upload work was invisible in the coarse stall breakdown. Start the span before refresh while retaining the existing suspension around deferred pipeline waits. Assisted-by: Codex (GPT-5.6-sol) --- crates/xcl/src/hle/d3d12x/real.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/xcl/src/hle/d3d12x/real.rs b/crates/xcl/src/hle/d3d12x/real.rs index a643a3ff0f..f7ee747a57 100644 --- a/crates/xcl/src/hle/d3d12x/real.rs +++ b/crates/xcl/src/hle/d3d12x/real.rs @@ -8666,11 +8666,11 @@ unsafe extern "system" fn q_execute_command_lists(this: *mut c_void, n: u32, lis // own work in the submission. Where that takes long, it is not the title's time // (`pso_async::title_held`) let _in_pc = super::pso_async::pc_call(); + let mut preparation_stall = crate::stall::span(crate::stall::StallKind::SubmitPreparation); // textures in title memory the CPU wrote since: uploaded again first super::title_textures::refresh(this); // console-shaped lists run as the PC lists they were translated into (split title lists expand // into all of their recorded PC segments in exact chronological order) - let mut preparation_stall = crate::stall::span(crate::stall::StallKind::SubmitPreparation); let mut mapped: Vec<*mut c_void> = Vec::with_capacity(n as usize); for &l in std::slice::from_raw_parts(lists, n as usize) { if let Some(pc) = super::console_list::pc_list(l) {