diff options
| author | krimtonz <33664508+krimtonz@users.noreply.github.com> | 2020-05-26 10:39:27 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-26 11:39:27 -0400 |
| commit | d48792870c592435a800d5b2b975ce05df231814 (patch) | |
| tree | f0de92eb2698735fc8012ae266b6e68ea9425117 /src/code/graph.c | |
| parent | 3175f5c988030056bf53f7f46cb57b03ec5c359a (diff) | |
Decompiles sched.c (#145)
* decompile sched.c
* rename Game_AllocEnd to Game_Alloc in z_effect_soft_sprite.c
* pr updates
Diffstat (limited to 'src/code/graph.c')
| -rw-r--r-- | src/code/graph.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/code/graph.c b/src/code/graph.c index e8c5a6393..eab22cd5c 100644 --- a/src/code/graph.c +++ b/src/code/graph.c @@ -244,7 +244,7 @@ void Graph_TaskSet00(GraphicsContext* gfxCtx) { cfb = sGraphCfbInfos + sGraphCfbInfoIdx++; cfb->fb1 = gfxCtx->curFrameBuffer; - cfb->swapbuffer = gfxCtx->curFrameBuffer; + cfb->swapBuffer = gfxCtx->curFrameBuffer; cfb->viMode = gfxCtx->viMode; cfb->features = gfxCtx->viFeatures; cfb->xScale = gfxCtx->xScale; @@ -257,7 +257,7 @@ void Graph_TaskSet00(GraphicsContext* gfxCtx) { gfxCtx->schedMsgQ = &gSchedContext.cmdQ; osSendMesg(&gSchedContext.cmdQ, scTask, OS_MESG_BLOCK); - func_800C95F8(&gSchedContext); // osScKickEntryMsg + Sched_SendEntryMsg(&gSchedContext); // osScKickEntryMsg } #else u32 D_8012D260 = 0; @@ -374,12 +374,12 @@ void Graph_Update(GraphicsContext* gfxCtx, GameState* gameState) { func_800F3054(); time = osGetTime(); - D_8016A538 = D_8016A568; - D_8016A530 = D_8016A560; - D_8016A540 = D_8016A580; - D_8016A568 = 0; - D_8016A560 = 0; - D_8016A580 = 0; + D_8016A538 = gRSPGFXTotalTime; + D_8016A530 = gRSPAudioTotalTime; + D_8016A540 = gRDPTotalTime; + gRSPGFXTotalTime = 0; + gRSPAudioTotalTime = 0; + gRDPTotalTime = 0; if (sGraphUpdateTime != 0) { D_8016A548 = time - sGraphUpdateTime; |
