//
// cocos2d::CCDirector::showFPSLabel from 0x1800bfd90 to 0x1800bfe4c (188 bytes)
//
// 3 xrefs:
// > cocos2d::CCDirector::drawScene @ 0x1800be472
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b93e4
//
// 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 __fastcall cocos2d::CCDirector::showFPSLabel(cocos2d::CCDirector *this)
{
signed int v2; // eax
float v3; // xmm1_4
float v4; // xmm0_4
float v5; // xmm0_4
if ( this->m_pFPSNode )
{
v2 = this->m_uFrames + 1;
v3 = this->m_fDeltaTime + this->m_fFpsAccumDt;
this->m_uFrames = v2;
this->m_fFpsAccumDt = v3;
if ( v3 > 0.1 )
{
this->m_uFrames = 0;
this->m_fFpsAccumDt = 0.0;
v4 = (float)v2 / v3;
this->m_fFrameRate = v4;
v5 = roundf(v4);
sub_180009530(this->m_pszFPS, "FPS: %i", (int)v5);
((void (__fastcall *)(cocos2d::CCLabelProtocol *, char *))this->m_pFPSNode->setString)(
&this->m_pFPSNode->cocos2d::CCLabelProtocol,
this->m_pszFPS);
}
((void (__fastcall *)(cocos2d::CCLabelBMFont *))this->m_pFPSNode->visit)(this->m_pFPSNode);
}
}