Optimise 3DS rendering a little

Double-buffering is enabled by default, and I don't need to flush
every single buffer.
This commit is contained in:
Clownacy 2020-10-11 14:26:15 +01:00
parent 10c4831160
commit 5597245865

View file

@ -15,7 +15,7 @@ bool WindowBackend_Software_CreateWindow(const char *window_title, size_t screen
(void)window_title; (void)window_title;
(void)fullscreen; (void)fullscreen;
gfxSetDoubleBuffering(GFX_TOP, true); // gfxSetDoubleBuffering(GFX_TOP, true);
gfxSetScreenFormat(GFX_TOP, GSP_BGR8_OES); gfxSetScreenFormat(GFX_TOP, GSP_BGR8_OES);
@ -65,7 +65,7 @@ void WindowBackend_Software_Display(void)
} }
gfxFlushBuffers(); gfxFlushBuffers();
gfxSwapBuffers(); gfxScreenSwapBuffers(GFX_TOP, false);
} }
void WindowBackend_Software_HandleWindowResize(size_t width, size_t height) void WindowBackend_Software_HandleWindowResize(size_t width, size_t height)