//
// cocos2d::CCDirector::showFPSLabel from 0xad623c to 0xad62e0 (164 bytes)
//
// 2 xrefs:
// > cocos2d::CCDirector::drawScene @ 0xad7660
// > ??> @ 0x34f98
//
// 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)
{
cocos2d::CCLabelBMFont *m_pFPSNode; // x0
unsigned int v3; // w1
float v4; // s0
unsigned __int8 *m_pszFPS; // x0
float v6; // s0
m_pFPSNode = a1->m_pFPSNode;
if ( m_pFPSNode )
{
v3 = a1->m_uFrames + 1;
v4 = a1->m_fFpsAccumDt + a1->m_fDeltaTime;
a1->m_uFrames = v3;
a1->m_fFpsAccumDt = v4;
if ( v4 > 0.1 )
{
m_pszFPS = a1->m_pszFPS;
a1->m_uFrames = 0;
v6 = (float)v3 / v4;
a1->m_fFpsAccumDt = 0.0;
a1->m_fFrameRate = v6;
sprintf((char *)m_pszFPS, "FPS: %i", llroundf(v6));
a1->m_pFPSNode->setString(a1->m_pFPSNode, a1->m_pszFPS);
m_pFPSNode = a1->m_pFPSNode;
}
m_pFPSNode->visit(m_pFPSNode);
}
}