Original Post
I want my FPS counter to be more accurate, and in most games I see they update the FPS (frames per second, not first person shooter silly
) counter several times per second... how do they do this? averaging ot or something? how would u do this?
heres what I am currently using:
CEO Platoon Studios
static DWORD oldTime = 0;
static int FPSnum = 0;
static int fps = 50;
if(timeGetTime() > oldTime)
{
fps = FPSnum;
oldTime = timeGetTime() + 1000;
FPSnum = 0;
}
else FPSnum++;