From 9da016bac9bc6d83c810c8b0fa4fd2d4b64cdef3 Mon Sep 17 00:00:00 2001 From: KiritoDv <kiritodev01@gmail.com> Date: Wed, 16 Oct 2024 12:52:05 -0600 Subject: [PATCH] Tagged stars --- src/engine/fox_bg.c | 7 +++++++ 1 file changed, 7 insertions(+) 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) {