From 904e1e4be361cccabdc70fc71473baaf6a84cbe8 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sun, 11 Mar 2018 22:13:13 -0700 Subject: [PATCH 1/2] Improve speed of framebuffer tiling --- nx/source/gfx/gfx.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/nx/source/gfx/gfx.c b/nx/source/gfx/gfx.c index 8bfa2208..5d80c07a 100644 --- a/nx/source/gfx/gfx.c +++ b/nx/source/gfx/gfx.c @@ -559,10 +559,23 @@ void gfxFlushBuffers(void) { size_t width = g_gfx_framebuf_display_width; size_t height = g_gfx_framebuf_display_height; u32 *in_framebuf = (u32*)g_gfxFramebufLinear; + u128 *out_framebuf = (u128*)actual_framebuf; for (y=0; y Date: Tue, 13 Mar 2018 18:50:31 -0700 Subject: [PATCH 2/2] Hoisting and slight simplification --- nx/source/gfx/gfx.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/nx/source/gfx/gfx.c b/nx/source/gfx/gfx.c index 5d80c07a..3d5720cf 100644 --- a/nx/source/gfx/gfx.c +++ b/nx/source/gfx/gfx.c @@ -563,19 +563,22 @@ void gfxFlushBuffers(void) { for (y=0; y