split framebuffer.

setup doublebuffering inside GPU.cpp.
avoid copying a whole framebuffer every frame. better performance at higher res.
This commit is contained in:
Arisotura
2019-05-12 15:01:40 +02:00
parent 939a376389
commit c88981b589
4 changed files with 91 additions and 37 deletions

View File

@ -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);