diff --git a/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Presentation.cpp b/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Presentation.cpp index efbef80f39..95df96b461 100644 --- a/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Presentation.cpp +++ b/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Presentation.cpp @@ -66,13 +66,17 @@ void Driver::AttachWindow(const PresentationWindow& window) { CheckFailure(); std::unique_lock replacing(deviceReplacement); GuestMemory::TagGpuLockSite(GuestMemory::GpuLockSite::Present); + PerformanceTimer timing("Driver.AttachWindow"); std::lock_guard lock(GuestMemory::GpuMutex()); + timing.Mark("gpu_mutex_wait"); if (device) { require(device->Window() == nullptr, "a window is already attached to the device"); device->PrepareForReplacement(); replacedDevices.push_back(device); + timing.Mark("device_replacement"); } device = std::make_shared(&window); + timing.Mark("vulkan_device_create"); } void Driver::Present(const PresentationWindow& window, const DisplayBuffer* buffer, const DisplayBuffer* plane, bool opaque, void (*gpuReady)(void*), void* context) {