mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 10:56:58 +02:00
fix(renderdoc): capture complete guest frames
This commit is contained in:
@@ -204,6 +204,11 @@ void GuestGpu::Done() {
|
|||||||
Common::LockGuard render_lock(m_renderer.GetMutex());
|
Common::LockGuard render_lock(m_renderer.GetMutex());
|
||||||
RenderDocEndCapture();
|
RenderDocEndCapture();
|
||||||
});
|
});
|
||||||
|
} else if (RenderDocCaptureRequested()) {
|
||||||
|
SendCommandSync([this] {
|
||||||
|
Common::LockGuard render_lock(m_renderer.GetMutex());
|
||||||
|
RenderDocStartCapture();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
m_graphics_done = true;
|
m_graphics_done = true;
|
||||||
m_done_num++;
|
m_done_num++;
|
||||||
@@ -566,10 +571,6 @@ void GuestGpu::ThreadRun(void* data) {
|
|||||||
|
|
||||||
bool GuestGpu::Process(Submission& submission) {
|
bool GuestGpu::Process(Submission& submission) {
|
||||||
const bool first_slice = !submission.started;
|
const bool first_slice = !submission.started;
|
||||||
if (first_slice && RenderDocCaptureRequested()) {
|
|
||||||
Common::LockGuard render_lock(m_renderer.GetMutex());
|
|
||||||
RenderDocStartCapture();
|
|
||||||
}
|
|
||||||
auto& cp = GetProcessor(submission.queue_id);
|
auto& cp = GetProcessor(submission.queue_id);
|
||||||
|
|
||||||
if (first_slice && submission.reset_processor) {
|
if (first_slice && submission.reset_processor) {
|
||||||
|
|||||||
Reference in New Issue
Block a user