mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-02 09:03:37 +00:00
Move VI_UpdateSize() from RDP_ProcessRDPList() to VI_UpdateScreen()
in order to avoid too often calls of that function.
This commit is contained in:
parent
01fc74b3c9
commit
698f49ed40
5
RDP.cpp
5
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
|
||||
|
|
5
VI.cpp
5
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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user