From c7f67eae75d03c8e05fc31e29a0a982ea82d77d2 Mon Sep 17 00:00:00 2001 From: sitton76 <58642183+sitton76@users.noreply.github.com> Date: Sat, 17 May 2025 03:06:29 -0500 Subject: [PATCH] Green shells tag, and added comments I neglected to add before. --- src/actors/falling_rock/render.inc.c | 3 ++- src/engine/objects/GrandPrixBalloons.cpp | 2 ++ src/racing/actors.c | 7 +++++++ src/render_player.c | 3 +++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/actors/falling_rock/render.inc.c b/src/actors/falling_rock/render.inc.c index cc6f0592b..9d50fd41c 100644 --- a/src/actors/falling_rock/render.inc.c +++ b/src/actors/falling_rock/render.inc.c @@ -59,6 +59,7 @@ void render_actor_falling_rock(Camera* camera, struct FallingRock* rock) { return; } gSPDisplayList(gDisplayListHead++, d_course_choco_mountain_dl_falling_rock); - FrameInterpolation_RecordCloseChild(); + // @port Pop the transform id. + FrameInterpolation_RecordCloseChild(); } diff --git a/src/engine/objects/GrandPrixBalloons.cpp b/src/engine/objects/GrandPrixBalloons.cpp index bf55465b6..e3d99f934 100644 --- a/src/engine/objects/GrandPrixBalloons.cpp +++ b/src/engine/objects/GrandPrixBalloons.cpp @@ -106,6 +106,7 @@ void OGrandPrixBalloons::func_80053D74(s32 objectIndex, UNUSED s32 arg1, s32 ver Vtx* vtx = (Vtx*) LOAD_ASSET_RAW(common_vtx_hedgehog); + // @port: Tag the transform. FrameInterpolation_RecordOpenChild("Balloon", TAG_ITEM_ADDR(object)); //Not working properly just yet if (gMatrixHudCount <= MTX_HUD_POOL_SIZE_MAX) { @@ -119,6 +120,7 @@ void OGrandPrixBalloons::func_80053D74(s32 objectIndex, UNUSED s32 arg1, s32 ver gSPDisplayList(gDisplayListHead++, (Gfx*)common_rectangle_display); } + // @port Pop the transform id. FrameInterpolation_RecordCloseChild(); } diff --git a/src/racing/actors.c b/src/racing/actors.c index 9344bd3eb..ba9ae9307 100644 --- a/src/racing/actors.c +++ b/src/racing/actors.c @@ -34,6 +34,7 @@ #include #include #include "port/Game.h" +#include "port/interpolation/FrameInterpolation.h" // Appears to be textures // or tluts @@ -707,6 +708,9 @@ void render_actor_shell(Camera* camera, Mat4 matrix, struct ShellActor* shell) { //! @todo Is this making the shell spin? // Is it doing this by modifying a an address? uintptr_t phi_t3; + + // @port: Tag the transform. + FrameInterpolation_RecordOpenChild("Shell", TAG_ITEM_ADDR(shell)); f32 temp_f0 = is_within_render_distance(camera->pos, shell->pos, camera->rot[1], 0, gCameraZoom[camera - camera1], 490000.0f); @@ -749,6 +753,9 @@ void render_actor_shell(Camera* camera, Mat4 matrix, struct ShellActor* shell) { } else { gSPDisplayList(gDisplayListHead++, D_0D005368); } + + // @port Pop the transform id. + FrameInterpolation_RecordCloseChild(); } UNUSED s16 D_802B8808[] = { 0x0014, 0x0028, 0x0000, 0x0000 }; diff --git a/src/render_player.c b/src/render_player.c index 8efa7bcbe..65545ebd7 100644 --- a/src/render_player.c +++ b/src/render_player.c @@ -1484,6 +1484,7 @@ void render_player_shadow(Player* player, s8 playerId, s8 screenId) { UNUSED Vec3f pad2; f32 var_f2; + // @port: Tag the transform. FrameInterpolation_RecordOpenChild("Kart Shadow", TAG_ITEM_ADDR(player)); temp_t9 = (u16) (player->unk_048[screenId] + player->rotation[1] + player->unk_0C0) / 128; // << 7) & 0xFFFF; spC0 = -player->rotation[1] - player->unk_0C0; @@ -1548,6 +1549,8 @@ void render_player_shadow(Player* player, s8 playerId, s8 screenId) { gSPDisplayList(gDisplayListHead++, common_square_plain_render); gSPTexture(gDisplayListHead++, 1, 1, 0, G_TX_RENDERTILE, G_OFF); + + // @port Pop the transform id. FrameInterpolation_RecordCloseChild(); }