Skip to content
1 change: 1 addition & 0 deletions crates/xcl/src/hle/d3d12x/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ pub unsafe extern "system" fn wait_frame_event_x(_this: *mut std::ffi::c_void, t

/// `PresentX` flipped the frame of `token`.
pub fn mark_flipped(token: u64) {
super::pso_async::on_frame_end();
if token == 0 {
return;
}
Expand Down
5 changes: 3 additions & 2 deletions crates/xcl/src/hle/d3d12x/list_x.rs
Original file line number Diff line number Diff line change
Expand Up @@ -835,8 +835,9 @@ pub(super) unsafe fn on_set_pipeline_state(list: *mut c_void, pso: usize) {
let sync_target = {
let mut g = LISTS.lock().unwrap();
let s = g.get_or_insert_with(HashMap::new).entry(key).or_default();
// Keep the title-visible base PSO key when `bind_abi` re-binds its resolved background PSO.
if s.bound_pso == 0 || pso == s.bound_pso || super::pso_async::resolve(s.bound_pso) != pso {
// Keep the title-visible base PSO key when `bind_abi` re-binds its resolved background PSO,
// without triggering lazy compilation or recording usage for a bind-only pipeline.
if s.bound_pso == 0 || pso == s.bound_pso || super::pso_async::resolve_if_ready(s.bound_pso) != pso {
s.bound_pso = pso;
}
let effective = s.bound_pso;
Expand Down
1 change: 1 addition & 0 deletions crates/xcl/src/hle/d3d12x/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pub mod list_x;
pub mod null;
pub mod present;
pub mod pso_async;
pub mod pso_library;
pub mod real;
mod shader_cache_session;
pub mod sparse;
Expand Down
1 change: 1 addition & 0 deletions crates/xcl/src/hle/d3d12x/present.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ unsafe extern "system" fn wndproc(hwnd: HWND, msg: u32, wp: WPARAM, lp: LPARAM)
match msg {
WM_CLOSE => {
crate::xlog_info!("XCL window closed – ending the game process");
super::real::flush_pipeline_library();
crate::report::write_final(None);
crate::log::flush();
windows::Win32::System::Threading::ExitProcess(0);
Expand Down
Loading
Loading