Draw FPS ( Frame Per Second )
Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
6 posts
Page 1 of 1
MY First Tutorial Since I Came Back clapper; cooll; goofy;
here is a simple tutorial that shows Frame Per Second
i released this code b4 for some other sites
so if u c it on another page don't say leeched and sth like that
Credits :aku ( my friend )
First add a module And Module Code :
And timer's Code :

u can add it to label , textbox or another thing
Have a good day
here is a simple tutorial that shows Frame Per Second

i released this code b4 for some other sites
so if u c it on another page don't say leeched and sth like that

Credits :aku ( my friend )
First add a module And Module Code :
Code: Select all
Add a timer on forum ( Interval Max : 25 / Min : 1 Enabled = true ) Public Declare Function GetTickCount Lib "kernel32" () As Long
Public LastFPS As Long
Public CountFPS As Long
Public CurFPS As Integer
Public HighestFPS As Integer
And timer's Code :
Code: Select all
with this code , Current FPS will appear in Form's text If GetTickCount() - LastFPS >= 1000 Then
CurFPS = CountFPS
CountFPS = 0 set the counter
LastFPS = GetTickCount()
If CurFPS > HighestFPS Then
HighestFPS = CurFPS
End If
End If
CountFPS = CountFPS + 1
Me.Text = CurFPS

u can add it to label , textbox or another thing

Have a good day
Last edited by NecroPhis on Sat Jul 30, 2011 2:19 am, edited 1 time in total.
Since when does GetTickCount relate to the video frames that are drawn on screen?
hmm i want to answer your question my english is bad i couldnt understandvery well
but as i can understand , yes its something like that
but as i can understand , yes its something like that

How is the time the computer is running related to the fps?
if you want a real fps thing then you should calculate it by the form_paint event or so
if you want a real fps thing then you should calculate it by the form_paint event or so
NecroPhis wrote:hmm i want to answer your question my english is bad i couldnt understandvery wellI've seen this tutorial alot of times.
but as i can understand , yes its something like that
I doubt your english is bad you just copied/pasted.
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that 

nah myfriend gave me the codes :O
and i released it on some sites
he told me he made it
and i released it on some sites
he told me he made it
6 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023