diff --git a/src/engine/fox_bg.c b/src/engine/fox_bg.c index b5023e92..753d039a 100644 --- a/src/engine/fox_bg.c +++ b/src/engine/fox_bg.c @@ -171,6 +171,8 @@ void Background_DrawStarfield(void) { float vy; const float STAR_MARGIN = 10.0f; // Margin to hide seam stars + FrameInterpolation_RecordOpenChild("Starfield", 0); + // Set projection to orthographic before drawing stars Lib_InitOrtho(&gMasterDisp); @@ -285,6 +287,8 @@ void Background_DrawStarfield(void) { // Finalize rendering state gDPPipeSync(gMasterDisp++); gDPSetColorDither(gMasterDisp++, G_CD_MAGICSQ); + + FrameInterpolation_RecordCloseChild(); } void Background_DrawPartialStarfield(s32 yMin, s32 yMax) { // Stars that are in the Epilogue @@ -308,6 +312,8 @@ void Background_DrawPartialStarfield(s32 yMin, s32 yMax) { // Stars that are in float starfieldWidth = 1.0f * currentScreenWidth; float starfieldHeight = 1.0f * currentScreenHeight; + FrameInterpolation_RecordOpenChild("Starfield", 0); + // Graphics pipeline setup gDPPipeSync(gMasterDisp++); gDPSetCycleType(gMasterDisp++, G_CYC_FILL); @@ -388,6 +394,7 @@ void Background_DrawPartialStarfield(s32 yMin, s32 yMax) { // Stars that are in } gDPPipeSync(gMasterDisp++); gDPSetColorDither(gMasterDisp++, G_CD_MAGICSQ); + FrameInterpolation_RecordCloseChild(); } void func_bg_8003E1E0(void) {