summaryrefslogtreecommitdiff
path: root/src/engine
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2025-03-05 12:28:05 -0600
committerKiritoDv <kiritodev01@gmail.com>2025-03-05 12:28:05 -0600
commitada8e55fe8555b386e25703904df3b87b507b21c (patch)
treea2af75bbf9537af7e3d4f18ff2237d73bda211f3 /src/engine
parentb7740b11a0c4b9d830d1d394eb0c3a94e017dbc9 (diff)
Fixed performance issues
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/fox_std_lib.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/engine/fox_std_lib.c b/src/engine/fox_std_lib.c
index 73754785..baeca62f 100644
--- a/src/engine/fox_std_lib.c
+++ b/src/engine/fox_std_lib.c
@@ -125,10 +125,9 @@ void Lib_Texture_Scroll(u16* texture, s32 width, s32 height, u8 mode) {
}
break;
}
- }
- // LTodo: we should only invalidate one texture
- gSPInvalidateTexCache(gMasterDisp++, NULL);
+ gSPInvalidateTexCache(gMasterDisp++, pixel);
+ }
}
void Lib_Texture_Mottle(u16* dst, u16* src, u8 mode) {
@@ -191,8 +190,7 @@ void Lib_Texture_Mottle(u16* dst, u16* src, u8 mode) {
break;
}
- // LTodo: we should only invalidate one texture
- gSPInvalidateTexCache(gMasterDisp++, NULL);
+ gSPInvalidateTexCache(gMasterDisp++, dst8);
}
s32 Animation_GetLimbIndex(Limb* limb, Limb** skeleton) {