diff options
| author | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2025-05-19 03:20:23 -0300 |
|---|---|---|
| committer | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2025-05-19 03:20:23 -0300 |
| commit | 1e65843326ba2bd42858ac66ef4c849745b68979 (patch) | |
| tree | 6f6614e89e8cbd4ec1453fe7b426413976346b0d | |
| parent | d35f0ee2644fd958c4544dc9d6ee74bef3b6d94e (diff) | |
fix performance issue for scrolling custom HD textures
| -rw-r--r-- | src/engine/fox_std_lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
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: |
