01-30-2023, 08:32 PM
please dont use all that code thats a mess
from that code above the only lines you need is
FLOAT fFPS = 0.0f;
extern ENGINE_API INDEX cli_iCurrentFPS;
fFPS = cli_iCurrentFPS;
CTString strFPS = "?";
CTString strRomain = "?";
if (fFPS >= 30)
strFPS.PrintF("%3.0f", fFPS);
else if (fFPS >= 0.1f)
strFPS.PrintF("%3.1f", fFPS);
strRomain.PrintF("LastChaos - FPS");
pDrawPort->PutTextExCX(strRomain, m_nPosX + this->GetWidth() / 2 , m_nLocalTimeY + 224, 0xFFFFFFFF);
pDrawPort->PutTextExCX(strFPS, m_nPosX + this->GetWidth() / 2 , m_nLocalTimeY + 244, 0x4BE100FF);

