shithub: cstory

Download patch

ref: 55972458657942dbb2b255918532dd7bbfe3fa6d
parent: 10c48311601295c684b1d481943bc28ca9f34866
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun Oct 11 10:26:15 EDT 2020

Optimise 3DS rendering a little

Double-buffering is enabled by default, and I don't need to flush
every single buffer.

--- a/src/Backends/Rendering/Window/Software/3DS.cpp
+++ b/src/Backends/Rendering/Window/Software/3DS.cpp
@@ -15,7 +15,7 @@
 	(void)window_title;
 	(void)fullscreen;
 
-	gfxSetDoubleBuffering(GFX_TOP, true);
+//	gfxSetDoubleBuffering(GFX_TOP, true);
 
 	gfxSetScreenFormat(GFX_TOP, GSP_BGR8_OES);
 
@@ -65,7 +65,7 @@
 	}
 
 	gfxFlushBuffers();
-	gfxSwapBuffers();
+	gfxScreenSwapBuffers(GFX_TOP, false);
 }
 
 void WindowBackend_Software_HandleWindowResize(size_t width, size_t height)