summaryrefslogtreecommitdiff
path: root/src/code/graph.c
diff options
context:
space:
mode:
authorDerek Hensley <hensley.derek58@gmail.com>2023-08-21 18:44:28 -0700
committerGitHub <noreply@github.com>2023-08-21 21:44:28 -0400
commit80595371509567174f2da5bc61c89e51799fca32 (patch)
tree358bb3b7cb394814a5f3550a1e3bb7e3ffa358c7 /src/code/graph.c
parent312fcafe2db9379a01c1b7f1f3ea4cd783ca48fe (diff)
Game bss and cleanup (#1356)
* Game bss and cleanup * Match Oot with rdp time variables * PR review * Namefixer
Diffstat (limited to 'src/code/graph.c')
-rw-r--r--src/code/graph.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/code/graph.c b/src/code/graph.c
index fe1542f66..bce162406 100644
--- a/src/code/graph.c
+++ b/src/code/graph.c
@@ -228,8 +228,8 @@ retry:
}
void Graph_UpdateGame(GameState* gameState) {
- Game_UpdateInput(gameState);
- Game_IncrementFrameCount(gameState);
+ GameState_GetInput(gameState);
+ GameState_IncrementFrameCount(gameState);
if (SREG(20) < 3) {
Audio_Update();
}
@@ -245,7 +245,7 @@ void Graph_ExecuteAndDraw(GraphicsContext* gfxCtx, GameState* gameState) {
gameState->unk_A3 = 0;
Graph_SetNextGfxPool(gfxCtx);
- Game_Update(gameState);
+ GameState_Update(gameState);
OPEN_DISPS(gfxCtx);
@@ -312,10 +312,10 @@ void Graph_ExecuteAndDraw(GraphicsContext* gfxCtx, GameState* gameState) {
D_801FBAE8 = sRSPGFXTotalTime;
D_801FBAE0 = gRSPAudioTotalTime;
- D_801FBAF0 = gRDPTotalTime;
+ gRDPTimeTotal = gRDPTimeAcc;
sRSPGFXTotalTime = 0;
gRSPAudioTotalTime = 0;
- gRDPTotalTime = 0;
+ gRDPTimeAcc = 0;
if (sGraphTaskStartTime != 0) {
lastRenderFrameDuration = time - sGraphTaskStartTime;