//
// cocos2d::CCDirector::showFPSLabel from 0x5c2f10 to 0x5c2f9a (138 bytes)
//
// 1 xrefs:
// > cocos2d::CCDirector::drawScene @ 0x5c3bec
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void cocos2d::CCDirector::showFPSLabel(cocos2d::CCDirector *a1)
{
float m_fFpsAccumDt; // s15
float m_fDeltaTime; // s13
unsigned int v4; // r3
float v5; // s15
unsigned __int8 *m_pszFPS; // r5
int v7; // r0
if ( a1->m_pFPSNode )
{
m_fFpsAccumDt = a1->m_fFpsAccumDt;
m_fDeltaTime = a1->m_fDeltaTime;
v4 = a1->m_uFrames + 1;
a1->m_uFrames = v4;
v5 = m_fFpsAccumDt + m_fDeltaTime;
a1->m_fFpsAccumDt = v5;
if ( v5 > 0.1 )
{
m_pszFPS = a1->m_pszFPS;
a1->m_uFrames = 0;
a1->m_fFpsAccumDt = 0.0;
a1->m_fFrameRate = (float)v4 / v5;
v7 = lroundf();
sprintf((char *)m_pszFPS, "FPS: %i", v7);
a1->m_pFPSNode->setString(a1->m_pFPSNode, a1->m_pszFPS);
}
a1->m_pFPSNode->visit(a1->m_pFPSNode);
}
}