Skip to content

Commit 65be1fe

Browse files
author
Niko
committed
FastAnim only do TURN animation, until we have more RAM
1 parent a9d3e40 commit 65be1fe

File tree

3 files changed

+33
-21
lines changed

3 files changed

+33
-21
lines changed

decompile/General/AltMods/DebugMenu/Font.c

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,4 +234,26 @@ void DebugProfiler_ListAllDebugStats()
234234

235235
sprintf(string, "BLUE %d", timeBlue);
236236
DECOMP_DecalFont_DrawLine(string, 0x14, 0x6C, FONT_SMALL, 0);
237+
}
238+
239+
void DebugProfiler_DrawOTag()
240+
{
241+
// VSYNC Profiler
242+
int DebugProfiler_SectionEnd();
243+
DebugProfiler_SectionEnd();
244+
245+
struct GameTracker* gGT = sdata->gGT;
246+
247+
if((gGT->gameMode1 & (LOADING|1)) == 0)
248+
{
249+
// reset depth to CLOSEST
250+
gGT->pushBuffer_UI.ptrOT =
251+
gGT->otSwapchainDB[gGT->swapchainIndex];
252+
253+
void DebugProfiler_Draw();
254+
DebugProfiler_Draw();
255+
256+
void DebugMenu_DrawIfOpen();
257+
DebugMenu_DrawIfOpen();
258+
}
237259
}

decompile/General/AltMods/Mods6.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,13 @@ void FastAnim_Start(struct GameTracker* gGT)
2727
{
2828
struct ModelHeader* h = &m->headers[j];
2929

30-
for(int k = 0; k < h->numAnimations; k++)
30+
// Just do TURN
31+
//for(int k = 0; k < h->numAnimations; k++)
32+
if(h->numAnimations != 0)
3133
{
32-
struct ModelAnim* ma = h->ptrAnimations[k];
34+
// Just do TURN
35+
// struct ModelAnim* ma = h->ptrAnimations[k];
36+
struct ModelAnim* ma = h->ptrAnimations[0];
3337

3438
// if animation is already decompressed, skip
3539
if(ma->ptrDeltaArray == 0)

decompile/General/MAIN/MainFrame_08_RenderFrame.c

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -465,25 +465,6 @@ void DECOMP_MainFrame_RenderFrame(struct GameTracker* gGT, struct GamepadSystem*
465465
RenderFMV();
466466
#endif
467467

468-
// VSYNC Profiler
469-
#ifdef USE_PROFILER
470-
int DebugProfiler_SectionEnd();
471-
DebugProfiler_SectionEnd();
472-
473-
if((gGT->gameMode1 & (LOADING|1)) == 0)
474-
{
475-
// reset depth to CLOSEST
476-
gGT->pushBuffer_UI.ptrOT =
477-
gGT->otSwapchainDB[gGT->swapchainIndex];
478-
479-
void DebugProfiler_Draw();
480-
DebugProfiler_Draw();
481-
482-
void DebugMenu_DrawIfOpen();
483-
DebugMenu_DrawIfOpen();
484-
}
485-
#endif
486-
487468
RenderSubmit(gGT);
488469
}
489470

@@ -1938,6 +1919,11 @@ void RenderSubmit(struct GameTracker* gGT)
19381919
OnlineMirrorMode(ot);
19391920
#endif
19401921

1922+
#ifdef USE_PROFILER
1923+
void DebugProfiler_DrawOTag();
1924+
DebugProfiler_DrawOTag();
1925+
#endif
1926+
19411927
DrawOTag(ot);
19421928

19431929
gGT->frameTimer_notPaused = gGT->frameTimer_VsyncCallback;

0 commit comments

Comments
 (0)