Add C3D_FrameCounter() for retrieving the value of the frame counter

This commit is contained in:
fincs 2017-05-14 23:09:56 +02:00
parent b811018a5d
commit 2062eff21d
2 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,7 @@ enum
float C3D_FrameRate(float fps);
void C3D_FrameSync(void);
u32 C3D_FrameCounter(int id);
bool C3D_FrameBegin(u8 flags);
bool C3D_FrameDrawOn(C3D_RenderTarget* target);

View File

@ -120,6 +120,11 @@ void C3D_FrameSync(void)
} while (cur[0]==start[0] || cur[1]==start[1]);
}
u32 C3D_FrameCounter(int id)
{
return frameCounter[id];
}
static bool C3Di_WaitAndClearQueue(s64 timeout)
{
gxCmdQueue_s* queue = &C3Di_GetContext()->gxQueue;