Addicting Cheats Production
here are the rulez

rule numbah 1 : no begging of any account & cheats/hacks

rule numbah 2 : no spamming

rule nambah 3 : respect other members

rule numbah 3 : no posting porn links

rule numbah 4 : No posting of E-mail address

rule numbah 5 : no warez links

rule numbah 6 : no advertising of any sites

rule numbah 7 : No flaming/arguing

rule numbah 8 : no selling of cheats/hacks

rule numbah 9 : no multi account
Addicting Cheats Production
here are the rulez

rule numbah 1 : no begging of any account & cheats/hacks

rule numbah 2 : no spamming

rule nambah 3 : respect other members

rule numbah 3 : no posting porn links

rule numbah 4 : No posting of E-mail address

rule numbah 5 : no warez links

rule numbah 6 : no advertising of any sites

rule numbah 7 : No flaming/arguing

rule numbah 8 : no selling of cheats/hacks

rule numbah 9 : no multi account
Addicting Cheats Production
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Addicting Cheats Production

Please Join Our Newest Clan RapidPro1810 This Is The Link http://sfclan.ph.gameclub.com/myclan/clan_index.asp?guildid=RapidPro1810
 
HomePortalLatest imagesSearchRegisterLog in

 

 [Source] Displayingg Framerate Per Second

Go down 
AuthorMessage
[AC]*[V]0[V]3NToFtRUTH
Site Owner
Site Owner
[AC]*[V]0[V]3NToFtRUTH


Posts : 210
Points : 1000140
Reputation : 0
Join date : 2010-01-18
Age : 38
Location : manila,philipines

[Source] Displayingg Framerate Per Second Empty
PostSubject: [Source] Displayingg Framerate Per Second   [Source] Displayingg Framerate Per Second Icon_minitimeFri Feb 05, 2010 7:58 am

Quote:

Code:
//includes

#include <time.h>


//globals

float fFps = 0.0f;
float fLastTickCount = 0.0f;
float fCurrentTickCount;
char cFrameRate[50] = {0};



//Do the rest in EndScene

HRESULT APIENTRY IDirect3DDevice9::EndScene()
{

fCurrentTickCount = clock() * 0.001f;
++fFps;

if((fCurrentTickCount - fLastTickCount) > 1.0f)
{
fLastTickCount = fCurrentTickCount;
sprintf(cFrameRate, "[ FPS: %d ]", int(fFps));
fFps = 0;
}

return Device->EndScene();

}
Back to top Go down
https://addictingcheats.forumotion.com
 
[Source] Displayingg Framerate Per Second
Back to top 
Page 1 of 1
 Similar topics
-
» [Source] X-hair
» [Source] 50% Bg Transparency in C++
» Crosshair source code
» [Source] Drawing Timer & Date

Permissions in this forum:You cannot reply to topics in this forum
Addicting Cheats Production :: Programming :: D3D-
Jump to: