fix(renderdoc): capture complete guest frames

This commit is contained in:
nmzik committed 2026-08-21 03:32:47 +02:00
1 parent 7e42513faf
commit 562f8a0895
1 file changed
+5 -4
+5 -4
View File
@@ -204,6 +204,11 @@ void GuestGpu::Done() {
Common::LockGuard render_lock(m_renderer.GetMutex());
RenderDocEndCapture();
});
} else if (RenderDocCaptureRequested()) {
SendCommandSync([this] {
Common::LockGuard render_lock(m_renderer.GetMutex());
RenderDocStartCapture();
});
}
m_graphics_done = true;
m_done_num++;
@@ -566,10 +571,6 @@ void GuestGpu::ThreadRun(void* data) {
bool GuestGpu::Process(Submission& submission) {
const bool first_slice = !submission.started;
if (first_slice && RenderDocCaptureRequested()) {
Common::LockGuard render_lock(m_renderer.GetMutex());
RenderDocStartCapture();
}
auto& cp = GetProcessor(submission.queue_id);
if (first_slice && submission.reset_processor) {