From 65cd085f9bb80531f5739807afffe837c7d2ffc1 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sun, 25 Jun 2017 22:23:47 -0500 Subject: Add new GUI option to skip XFBToRam and remove old XFB options --- Source/Core/VideoCommon/MainBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/MainBase.cpp') diff --git a/Source/Core/VideoCommon/MainBase.cpp b/Source/Core/VideoCommon/MainBase.cpp index d442e7f0b8..652eb15969 100644 --- a/Source/Core/VideoCommon/MainBase.cpp +++ b/Source/Core/VideoCommon/MainBase.cpp @@ -49,7 +49,7 @@ void VideoBackendBase::Video_ExitLoop() void VideoBackendBase::Video_BeginField(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, u64 ticks) { - if (m_initialized && g_ActiveConfig.bUseXFB && g_renderer) + if (m_initialized && g_renderer) { Fifo::SyncGPU(Fifo::SyncGPUReason::Swap); -- cgit v1.2.3 From 7f0834c91992c3726f1ba36f32f85b97aaa1ece2 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sat, 12 Aug 2017 23:10:21 -0500 Subject: Add 'immediate xfb' which reduces xfb latency at the cost of graphical errors --- Source/Core/VideoCommon/MainBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/MainBase.cpp') diff --git a/Source/Core/VideoCommon/MainBase.cpp b/Source/Core/VideoCommon/MainBase.cpp index 652eb15969..38d37113e2 100644 --- a/Source/Core/VideoCommon/MainBase.cpp +++ b/Source/Core/VideoCommon/MainBase.cpp @@ -49,7 +49,7 @@ void VideoBackendBase::Video_ExitLoop() void VideoBackendBase::Video_BeginField(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, u64 ticks) { - if (m_initialized && g_renderer) + if (m_initialized && g_renderer && !g_ActiveConfig.bImmediateXFB) { Fifo::SyncGPU(Fifo::SyncGPUReason::Swap); -- cgit v1.2.3 From a129a53e56cdff93e2fd092fd56f3e0726408a60 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Wed, 13 Sep 2017 23:46:30 -0500 Subject: Video Common: Improve texture dumping to work with fifoci and fifo_comparer --- Source/Core/VideoCommon/MainBase.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Source/Core/VideoCommon/MainBase.cpp') diff --git a/Source/Core/VideoCommon/MainBase.cpp b/Source/Core/VideoCommon/MainBase.cpp index 38d37113e2..280fed683d 100644 --- a/Source/Core/VideoCommon/MainBase.cpp +++ b/Source/Core/VideoCommon/MainBase.cpp @@ -45,6 +45,15 @@ void VideoBackendBase::Video_ExitLoop() s_FifoShuttingDown.Set(); } +void VideoBackendBase::Video_CleanupShared() +{ + // First stop any framedumping, which might need to dump the last xfb frame. This process + // can require additional graphics sub-systems so it needs to be done first + g_renderer->ExitFramedumping(); + + Video_Cleanup(); +} + // Run from the CPU thread (from VideoInterface.cpp) void VideoBackendBase::Video_BeginField(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, u64 ticks) -- cgit v1.2.3