aboutsummaryrefslogtreecommitdiff
path: root/src/GPU.h
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2019-05-12 15:01:40 +0200
committerArisotura <thetotalworm@gmail.com>2019-05-12 15:01:40 +0200
commitc88981b5892ed3faf7cd19302c398debe27d94ed (patch)
treec6cf9164ff072c6a2b7a5908a5d394d4dc2cab85 /src/GPU.h
parent939a37638995a2f4504400c7b365aacf66536473 (diff)
split framebuffer.
setup doublebuffering inside GPU.cpp. avoid copying a whole framebuffer every frame. better performance at higher res.
Diffstat (limited to 'src/GPU.h')
-rw-r--r--src/GPU.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/GPU.h b/src/GPU.h
index a430a32..2e47fc4 100644
--- a/src/GPU.h
+++ b/src/GPU.h
@@ -61,7 +61,8 @@ extern u32 VRAMMap_Texture[4];
extern u32 VRAMMap_TexPal[8];
extern u32 VRAMMap_ARM7[2];
-extern u32* Framebuffer;
+extern int FrontBuffer;
+extern u32* Framebuffer[2][2];
extern GPU2D* GPU2D_A;
extern GPU2D* GPU2D_B;
@@ -74,7 +75,7 @@ void Stop();
void DoSavestate(Savestate* file);
-void SetFramebufferScale(int scale);
+void SetFramebufferScale(int top, int bottom);
void MapVRAM_AB(u32 bank, u8 cnt);