From 1e65843326ba2bd42858ac66ef4c849745b68979 Mon Sep 17 00:00:00 2001 From: Sonic Dreamcaster Date: Mon, 19 May 2025 03:20:23 -0300 Subject: [PATCH] fix performance issue for scrolling custom HD textures --- src/engine/fox_std_lib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/fox_std_lib.c b/src/engine/fox_std_lib.c index 47be8b2a..a8f8de36 100644 --- a/src/engine/fox_std_lib.c +++ b/src/engine/fox_std_lib.c @@ -42,6 +42,8 @@ void Lib_Texture_Scroll(u16* texture, s32 width, s32 height, u8 mode) { width = newWidth; height = newHeight; + scale = 1; // TODO: a higher scale causes performance issues for large textures ? + for(s32 i = 0; i < (s32) scale; i++){ switch (mode) { case 0: