shithub: cstory

Download patch

ref: c50155b1b0f2517efbe62c3f9a64c1d73e68a4f2
parent: d006b6c439cf3061dfa6d2ce1070fd6715fc1fc6
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Oct 14 12:16:37 EDT 2020

Better way to handle EnableAlpha mid-frame

This should have much lower overhead

--- a/src/Backends/Rendering/3DS.cpp
+++ b/src/Backends/Rendering/3DS.cpp
@@ -64,10 +64,7 @@
 	if (enabled != previous_setting)
 	{
 		if (frame_started)
-		{
-			C3D_FrameEnd(0);
-			frame_started = false;
-		}
+			C2D_Flush();
 
 		if (enabled)
 			C3D_AlphaBlend(GPU_BLEND_ADD, GPU_BLEND_ADD, GPU_SRC_ALPHA, GPU_ONE_MINUS_SRC_ALPHA, GPU_SRC_ALPHA, GPU_ONE_MINUS_SRC_ALPHA);