Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / screen fps() returns 0, that cant be right!

Author
Message
SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 30th Mar 2011 04:47
when i call the screen fps command it returns 0, my program is running much faster than that by just looking at it. Any thoughts?


My software never has bugs, it just develops random features.
C4: silly putty for men.
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 30th Mar 2011 15:14
Lots of thoughts thanks!

The command works for me try this, what are the results?


=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 30th Mar 2011 18:26
for me, it returns 0 for the 1st few seconds, then shows the fps.

Lucas Tiridath
AGK Developer
17
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 30th Mar 2011 18:33
Same for me as for PRoF and is also the case in games I've developed and tested with it. Are you only printing it once? It should be printed each loop I guess.
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 30th Mar 2011 18:42
2 calls between syncs will result in 0 FPS

SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 31st Mar 2011 01:59
Quote: "for me, it returns 0 for the 1st few seconds, then shows the fps."


Thanks guys, I was only calling it once per sync. Prof and Lucas Tiridath solved it for me though, I was taking a static capture of screen fps(), so it only got 0, thanks guys


My software never has bugs, it just develops random features.
C4: silly putty for men.

Login to post a reply

Server time is: 2026-07-11 14:56:58
Your offset time is: 2026-07-11 14:56:58