// // cocos2d::CCDirector::showFPSLabel from 0x100483470 to 0x10048354d (221 bytes) // // 0 xrefs: // // 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) { __m128 v1; // xmm1 cocos2d::CCLabelBMFont *m_pFPSNode; // rax signed int v3; // ecx float v4; // xmm0_4 __m128 v5; // xmm0 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 ) { v1.f32[0] = (float)v3 / v4; LODWORD(a1->m_fFrameRate) = v1.i32[0]; a1->m_uFrames = 0; a1->m_fFpsAccumDt = 0.0; v5 = _mm_or_ps(_mm_and_ps((__m128)xmmword_1008150B0, v1), (__m128)xmmword_1008150C0); v5.f32[0] = v5.f32[0] + v1.f32[0]; sprintf(a1->m_pszFPS, "FPS: %i", (int)_mm_round_ss(v5, v5, 11).f32[0]); ((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