mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-26 03:12:18 -05:00
Fixed slowdown on dodongo (#945)
* Fixed slowdown on dodongo * Invalidate only works on pc * Added todo comment
This commit is contained in:
parent
206f63f9e6
commit
a1ed35e5bd
@ -1697,7 +1697,10 @@ void BossDodongo_DrawEffects(GlobalContext* globalCtx) {
|
|||||||
func_80093D84(globalCtx->state.gfxCtx);
|
func_80093D84(globalCtx->state.gfxCtx);
|
||||||
unkMtx = &globalCtx->billboardMtxF;
|
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);
|
gSPInvalidateTexCache(POLY_XLU_DISP++, 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
for (i = 0; i < 80; i++, eff++) {
|
for (i = 0; i < 80; i++, eff++) {
|
||||||
if (eff->unk_24 == 1) {
|
if (eff->unk_24 == 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user