Help

Posts 1–7 of 7 · Page 1 of 1
Help
I want FPS (PING) code for Visual Basic i wait for awnser


Sry for my english
What do you want?
he wants to show FPS of sth on his program
For FPS Games i want the FPS or Ping for show im game code!
learn C++
/Too Short
i can C++ i learn now Visual Basic i want for Visual Basic!


/* #include */
#include <time.h>
float fLastTickCount=0.0f;
float fCurrentTickCount;
char CH_FPS [20];

/* MENU[MENUMAXITEMS]; */
int CH_NoFPS=0;

/* void RebuildMenu(void) */
MenuAddItem("Framerate:",(char **)CH_FPS,0,0,MENUTEXT);

/* HRESULT WINAPI myPresent */
if(CH_FPS)
{
fCurrentTickCount=clock() * 0.001f;
CH_NoFPS++;
if((fCurrentTickCount - fLastTickCount)>1.0f)
{
fLastTickCount=fCurrentTickCount;
sprintf(CH_FPS, "%d", CH_NoFPS);
CH_NoFPS=0;
}
}


this is C++ i want Visual Basic i leanr now Visual Basic!
Posts 1–7 of 7 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us