From 698f49ed40326817158a8fabba95eddda1b51fd4 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Mon, 24 Nov 2014 23:10:33 +0600 Subject: [PATCH] Move VI_UpdateSize() from RDP_ProcessRDPList() to VI_UpdateScreen() in order to avoid too often calls of that function. --- RDP.cpp | 5 ----- VI.cpp | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/RDP.cpp b/RDP.cpp index dd161244..7914a9ee 100644 --- a/RDP.cpp +++ b/RDP.cpp @@ -4,8 +4,6 @@ #include "GBI.h" #include "gDP.h" #include "gSP.h" -#include "VI.h" -#include "OpenGL.h" #include "Debug.h" void RDP_Unknown( u32 w0, u32 w1 ) @@ -509,9 +507,6 @@ void RDP_ProcessRDPList() if (dp_end <= dp_current) return; - VI_UpdateSize(); - video().updateScale(); - RSP.bLLE = true; // load command data diff --git a/VI.cpp b/VI.cpp index 07ec91e5..5c423a6d 100644 --- a/VI.cpp +++ b/VI.cpp @@ -79,6 +79,11 @@ void VI_UpdateScreen() return; ogl.saveScreenshot(); + if (RSP.bLLE && *REG.VI_ORIGIN != VI.lastOrigin) { + VI_UpdateSize(); + video().updateScale(); + } + if (config.frameBufferEmulation.enable) { const bool bCFB = !config.frameBufferEmulation.ignoreCFB && (gSP.changed&CHANGED_CPU_FB_WRITE) == CHANGED_CPU_FB_WRITE; const bool bNeedUpdate = bCFB ? true : (*REG.VI_ORIGIN != VI.lastOrigin);// && gDP.colorImage.changed;