diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-10-17 09:53:40 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2024-10-17 09:53:40 -0600 |
| commit | 2cfbe01e50e65ff1ada5ba100eb73feac18524ae (patch) | |
| tree | 039241c739eccbc456bedc54cd42061dab175dec /src/engine/fox_edisplay.c | |
| parent | cd288a4c5b816ddad9a019d41ee2e442f169eba1 (diff) | |
Added frame interpolation markers
Diffstat (limited to 'src/engine/fox_edisplay.c')
| -rw-r--r-- | src/engine/fox_edisplay.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/engine/fox_edisplay.c b/src/engine/fox_edisplay.c index db07a84a..88753517 100644 --- a/src/engine/fox_edisplay.c +++ b/src/engine/fox_edisplay.c @@ -828,6 +828,7 @@ void ItemCheckpoint_Draw(ItemCheckpoint* this) { if (((gGameFrameCount & 0x18) != 0) && (this->state == 0)) { FrameInterpolation_RecordOpenChild(this, 0); + FrameInterpolation_RecordMarker(__FILE__, __LINE__); Matrix_Push(&gGfxMatrix); RCP_SetupDL(&gMasterDisp, SETUPDL_64); gDPSetPrimColor(gMasterDisp++, 0x00, 0x00, 255, 255, 0, 255); @@ -840,6 +841,7 @@ void ItemCheckpoint_Draw(ItemCheckpoint* this) { FrameInterpolation_RecordCloseChild(); } FrameInterpolation_RecordOpenChild(this, 1); + FrameInterpolation_RecordMarker(__FILE__, __LINE__); RCP_SetupDL(&gMasterDisp, SETUPDL_29); gSPTexture(gMasterDisp++, 2000, 2000, 0, G_TX_RENDERTILE, G_ON); gSPSetGeometryMode(gMasterDisp++, G_TEXTURE_GEN); @@ -1705,6 +1707,7 @@ void Object_DrawAll(s32 arg0) { for (i = 0, scenery360 = gScenery360; i < 200; i++, scenery360++) { FrameInterpolation_RecordOpenChild(scenery360, i); + FrameInterpolation_RecordMarker(__FILE__, __LINE__); if ((scenery360->obj.status == OBJ_ACTIVE) && (scenery360->obj.id != OBJ_SCENERY_LEVEL_OBJECTS)) { if (gCurrentLevel == LEVEL_BOLSE) { spAC.x = scenery360->sfxSource[0]; @@ -1723,15 +1726,16 @@ void Object_DrawAll(s32 arg0) { RCP_SetupDL_29(gFogRed, gFogGreen, gFogBlue, gFogAlpha, gFogNear, gFogFar); for (i = 0, scenery = gScenery; i < ARRAY_COUNT(gScenery); i++, scenery++) { if (scenery->obj.status >= OBJ_ACTIVE) { + FrameInterpolation_RecordOpenChild(scenery, i); + FrameInterpolation_RecordMarker(__FILE__, __LINE__); if (arg0 > 0) { Display_SetSecondLight(&scenery->obj.pos); } Matrix_Push(&gGfxMatrix); - FrameInterpolation_RecordOpenChild(scenery, i); Scenery_Draw(scenery, arg0); - FrameInterpolation_RecordCloseChild(); Matrix_Pop(&gGfxMatrix); Object_UpdateSfxSource(scenery->sfxSource); + FrameInterpolation_RecordCloseChild(); } } } @@ -1739,6 +1743,7 @@ void Object_DrawAll(s32 arg0) { for (i = 0, boss = gBosses; i < ARRAY_COUNT(gBosses); i++, boss++) { if ((boss->obj.status >= OBJ_ACTIVE) && (boss->obj.id != OBJ_BOSS_BO_BASE_SHIELD)) { FrameInterpolation_RecordOpenChild(boss, i); + FrameInterpolation_RecordMarker(__FILE__, __LINE__); if ((boss->timer_05C % 2) == 0) { RCP_SetupDL_29(gFogRed, gFogGreen, gFogBlue, gFogAlpha, gFogNear, gFogFar); } else { @@ -1764,6 +1769,7 @@ void Object_DrawAll(s32 arg0) { for (i = 0, sprite = gSprites; i < ARRAY_COUNT(gSprites); i++, sprite++) { if ((sprite->obj.status >= OBJ_ACTIVE) && func_enmy_80060FE4(&sprite->obj.pos, -12000.0f)) { FrameInterpolation_RecordOpenChild(sprite, i); + FrameInterpolation_RecordMarker(__FILE__, __LINE__); Matrix_Push(&gGfxMatrix); if ((sprite->obj.id == OBJ_SPRITE_CO_RUIN1) || (sprite->obj.id == OBJ_SPRITE_CO_RUIN2)) { @@ -1781,6 +1787,7 @@ void Object_DrawAll(s32 arg0) { for (i = 0, actor = &gActors[0]; i < ARRAY_COUNT(gActors); i++, actor++) { if (actor->obj.status >= OBJ_ACTIVE) { FrameInterpolation_RecordOpenChild(actor, i); + FrameInterpolation_RecordMarker(__FILE__, __LINE__); if ((actor->timer_0C6 % 2) == 0) { if (gCurrentLevel == LEVEL_UNK_15) { RCP_SetupDL_23(); @@ -1829,7 +1836,7 @@ void Object_DrawAll(s32 arg0) { } break; } - FrameInterpolation_RecordCloseChild(); + FrameInterpolation_RecordCloseChild(); } } @@ -1841,6 +1848,7 @@ void Object_DrawAll(s32 arg0) { for (i = 0, item = &gItems[0]; i < ARRAY_COUNT(gItems); i++, item++) { if (item->obj.status >= OBJ_ACTIVE) { FrameInterpolation_RecordOpenChild(item, i); + FrameInterpolation_RecordMarker(__FILE__, __LINE__); Matrix_Push(&gGfxMatrix); RCP_SetupDL(&gMasterDisp, SETUPDL_29); Object_SetCullDirection(arg0); @@ -1864,6 +1872,7 @@ void Effect_DrawAll(s32 arg0) { for (i = 0, effect = &gEffects[0]; i < ARRAY_COUNT(gEffects); i++, effect++) { if (effect->obj.status >= OBJ_ACTIVE) { FrameInterpolation_RecordOpenChild(effect, i); + FrameInterpolation_RecordMarker(__FILE__, __LINE__); if (effect->info.unk_14 == 1) { effect->obj.rot.y = RAD_TO_DEG(-gPlayer[gPlayerNum].camYaw); effect->obj.rot.x = RAD_TO_DEG(gPlayer[gPlayerNum].camPitch); @@ -1891,6 +1900,7 @@ void Effect_DrawAll(s32 arg0) { for (i = 0, boss = &gBosses[0]; i < ARRAY_COUNT(gBosses); i++, boss++) { if ((boss->obj.status >= OBJ_ACTIVE) && (boss->obj.id == OBJ_BOSS_BO_BASE_SHIELD)) { FrameInterpolation_RecordOpenChild(boss, i); + FrameInterpolation_RecordMarker(__FILE__, __LINE__); if ((boss->timer_05C % 2) == 0) { RCP_SetupDL_29(gFogRed, gFogGreen, gFogBlue, gFogAlpha, gFogNear, gFogFar); } else { @@ -1962,6 +1972,7 @@ void TexturedLine_Draw(void) { for (i = 0; i < ARRAY_COUNT(gTexturedLines); i++) { TexturedLine* texLine = &gTexturedLines[i]; FrameInterpolation_RecordOpenChild(texLine, i); + FrameInterpolation_RecordMarker(__FILE__, __LINE__); if (gTexturedLines[i].mode != 0) { Matrix_Push(&gGfxMatrix); |
