diff options
author | Arisotura <thetotalworm@gmail.com> | 2019-05-12 15:01:40 +0200 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2019-05-12 15:01:40 +0200 |
commit | c88981b5892ed3faf7cd19302c398debe27d94ed (patch) | |
tree | c6cf9164ff072c6a2b7a5908a5d394d4dc2cab85 /src/GPU.h | |
parent | 939a37638995a2f4504400c7b365aacf66536473 (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.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |