From ef51666c98a711d335443d5196810519da577a22 Mon Sep 17 00:00:00 2001 From: MysterD Date: Thu, 28 Apr 2022 00:22:15 -0700 Subject: [PATCH] WIP: uncapped framerate 8 --- src/game/rendering_graph_node.c | 3 --- src/game/skybox.c | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/game/rendering_graph_node.c b/src/game/rendering_graph_node.c index f3205432..62aa6343 100644 --- a/src/game/rendering_graph_node.c +++ b/src/game/rendering_graph_node.c @@ -254,9 +254,6 @@ void patch_mtx_interpolated(f32 delta) { delta_interpolate_mtx(&gMtxTbl[i].interp, (Mtx*) gMtxTbl[i].mtxPrev, (Mtx*) gMtxTbl[i].mtx, delta); gSPMatrix(pos++, VIRTUAL_TO_PHYSICAL(&gMtxTbl[i].interp), G_MTX_MODELVIEW | G_MTX_LOAD | G_MTX_NOPUSH); - if (delta >= 0.5f) { - gSPDisplayList(pos++, gMtxTbl[i].displayList); - } } } diff --git a/src/game/skybox.c b/src/game/skybox.c index 86534385..1318f858 100644 --- a/src/game/skybox.c +++ b/src/game/skybox.c @@ -234,6 +234,7 @@ void draw_skybox_tile_grid(Gfx **dlist, s8 background, s8 player, s8 colorIndex) for (col = 0; col < 3; col++) { s32 tileIndex = sSkyBoxInfo[player].upperLeftTile + row * SKYBOX_COLS + col; // UGLY HACK: if the camera moves weird after a level transition this can go too high + if (tileIndex < 0) { tileIndex = 0; } if (tileIndex > 79) { tileIndex = 79; } Texture* texture = NULL; if (background >= 10) {