System FPS Counter ...
 
Notifications
Clear all

System FPS Counter SourceCode C++/C


KranK
Posts: 336
Topic starter
(@KranK)
Reputable Member
Joined: 9 years ago

I have Codded this function to easy get FPS from any Game/System!

Note: this can be ported or used on any lang and Platform with little tweaking

[HIDE][HASHTAG]#include[/HASHTAG]

float FramesPerSecond = 0;
float FrameCounter = 0;
int FPS_30 = 4; //for 30 Frames per second output
int FPS_60 = 2; //for 60 Frames per second output
int LastTime = 0;

float Read_SYS_FPS()
{
time_t TimePointer;
int CurrentTime = time(&TimePointer);
if (LastTime != CurrentTime)
{
LastTime = CurrentTime;
FramesPerSecond = FrameCounter;
FrameCounter = 0;
}
else
{
FrameCounter++;
}
return FramesPerSecond / FPS_30;
}
[/HIDE]

Reply
Name of the Video Game, and any other Tags
4 Replies
SaiMods
Posts: 2
(@SaiMods)
New Member
Joined: 9 years ago

Sexy just like me fam aye 😉

Reply
LEGACYY
Posts: 2350
(@legacyy)
Noble Member
Joined: 9 years ago

Great post Buddy! KranK (y)

Reply
anxify
Posts: 203
(@anxify)
Reputable Member
Joined: 8 years ago

I have Codded this function to easy get FPS from any Game/System!

Note: this can be ported or used on any lang and Platform with little tweaking

Hidden content cannot be quoted.

Nice release bro

Reply
Posts: 0
(@Waitformymods)
New Member
Joined: 8 years ago

But you still need to get the draw engine for some games in order to make it work , gg anyway

Reply