How do i make like a label or textbox show the fps your comp is running at?.
Originally Posted by wassup40
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.
[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]
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.