Page 1 of 1
Framerate()
Posted: Fri May 23, 2003 7:12 pm
by Keph_
It would be great if a Framerate() function was included in PureBasic, like the screen fps() function of DarkBasic...
Posted: Thu May 29, 2003 7:30 am
by waffle
you can always code that yourself, its rather easy.
Windows:
TimeDelay.l=100
MasterTimer.l=GetTickCount_()
;game loop
repeat
FlipBuffers()
;and other code...
TimeDelay=GetTickCount_()-MasterTimer
MasterTimer=GetTickCount_()
FrameRate.f=1000/TimeDelay
until quit
Posted: Thu May 29, 2003 6:22 pm
by Keph_
Thx waffle.
I have already done it, but I thinks it would be great id this function was in the Pure directly.