From e82d6413572a2fc6c7d7f53e57414c3f4b0bd0c8 Mon Sep 17 00:00:00 2001 From: Fernando Sahmkow Date: Fri, 26 Jul 2019 14:20:43 -0400 Subject: GPU: Flush commands on every dma pusher step. This commit ensures that the host gpu is constantly fed with commands to work with, while the guest gpu keeps producing the rest of the commands. This reduces syncing time between host and guest gpu. --- src/video_core/gpu.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/video_core/gpu.cpp') diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index 1622332a43..c409af194f 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp @@ -120,6 +120,10 @@ bool GPU::CancelSyncptInterrupt(const u32 syncpoint_id, const u32 value) { return true; } +void GPU::FlushCommands() { + renderer.Rasterizer().FlushCommands(); +} + u32 RenderTargetBytesPerPixel(RenderTargetFormat format) { ASSERT(format != RenderTargetFormat::NONE); -- cgit v1.2.3