From 629a8e0e252e976a8a27bccdf109ccb94031a416 Mon Sep 17 00:00:00 2001 From: Triang3l Date: Mon, 27 Aug 2018 12:54:15 +0300 Subject: [PATCH] [D3D12] Profile GPU time via BeginFrame --- src/xenia/gpu/d3d12/d3d12_command_processor.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xenia/gpu/d3d12/d3d12_command_processor.cc b/src/xenia/gpu/d3d12/d3d12_command_processor.cc index 741e7b6b8..cba33fdb9 100644 --- a/src/xenia/gpu/d3d12/d3d12_command_processor.cc +++ b/src/xenia/gpu/d3d12/d3d12_command_processor.cc @@ -1067,6 +1067,10 @@ bool D3D12CommandProcessor::BeginFrame() { return false; } +#if FINE_GRAINED_DRAW_SCOPES + SCOPE_profile_cpu_f("gpu"); +#endif // FINE_GRAINED_DRAW_SCOPES + auto context = GetD3D12Context(); context->BeginSwap(); current_queue_frame_ = context->GetCurrentQueueFrame();