Fixed slowdown on dodongo (#945)

* Fixed slowdown on dodongo

* Invalidate only works on pc

* Added todo comment
pull/379/head
KiritoDev 10 months ago committed by GitHub
parent 206f63f9e6
commit a1ed35e5bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1697,7 +1697,10 @@ void BossDodongo_DrawEffects(GlobalContext* globalCtx) {
func_80093D84(globalCtx->state.gfxCtx);
unkMtx = &globalCtx->billboardMtxF;
// OTRTODO: This call causes the whole texture cache to be cleaned up, which causes an important slowdown on switch so we need to find a way to avoid it.
#ifndef __SWITCH__
gSPInvalidateTexCache(POLY_XLU_DISP++, 0);
#endif
for (i = 0; i < 80; i++, eff++) {
if (eff->unk_24 == 1) {

Loading…
Cancel
Save