// // cocos2d::CCDirector::showFPSLabel from 0x1001758e4 to 0x100175998 (180 bytes) // // 1 xrefs: // > cocos2d::CCDirector::drawScene @ 0x1001756a8 // // 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 *a1) { cocos2d::CCLabelBMFont *m_pFPSNode; // x0 unsigned int v3; // w8 float v4; // s0 float v5; // s0 m_pFPSNode = a1->m_pFPSNode; if ( m_pFPSNode ) { v3 = a1->m_uFrames + 1; a1->m_uFrames = v3; v4 = a1->m_fDeltaTime + a1->m_fFpsAccumDt; a1->m_fFpsAccumDt = v4; if ( v4 > 0.1 ) { v5 = (float)v3 / v4; a1->m_fFrameRate = v5; a1->m_uFrames = 0; a1->m_fFpsAccumDt = 0.0; sprintf(a1->m_pszFPS, "FPS: %i", llroundf(v5)); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))a1->m_pFPSNode->setString)(a1->m_pFPSNode, a1->m_pszFPS); m_pFPSNode = a1->m_pFPSNode; } ((void (__fastcall *)(cocos2d::CCLabelBMFont *))m_pFPSNode->visit)(m_pFPSNode); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source