FPS

Posts 1–5 of 5 · Page 1 of 1
FPS
How do i make like a label or textbox show the fps your comp is running at?.
Quote Originally Posted by wassup40 View Post
How do i make like a label or textbox show the fps your comp is running at?.
Lol, and you says you can code opk? Fail.
Quote Originally Posted by Aartifcial View Post
Lol, and you says you can code opk? Fail.
This is vb section.
[php]
Dim STime as Long
Dim ETime as Lonh
...
STime = GetTickCount()
'// do drawing and updating here...
ETime = GetTickCount()
Dim fps as Single
fps = 1000 / (ETime-STime)
[/php]

Credits : - Frames per second - VBForumsⓘ
Quote Originally Posted by wassup40 View Post
How do i make like a label or textbox show the fps your comp is running at?.
Correct me if I'm wrong:
You can't get the FPS of your screen as a whole, because various applications are running and rendering at different speeds etc, but it is possible to get the frames per second of a single application I guess. More info please.

@GTM, that code is if you're rendering frames from your application. It gets the ticknumber of a timer, then you execute your drawing procedure, then you get the ticknumber of the timer again and compare the time it took in seconds to render that single frame. This won't work really if you're not actually rendering the frames from your application.
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us