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.

Dark GDK / displaying fps

Author
Message
CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 4th Jun 2008 03:21
sorry about the noob question but how do i get it to show the fps on the screen. i use dbtext and all but i get an error. CANNOT CONVERT int to Char* how do i do this.

The South Will Rise Again Software Development Comp.
action 9000
16
Years of Service
User Offline
Joined: 27th May 2008
Location: Alberta, Canada
Posted: 4th Jun 2008 04:23
you need to convert the screenfps() value to a string. Here's the code necessary:

Codger
21
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 4th Jun 2008 04:53
dbText(10,10,dbStr(dbScreenFPS()) should do it

System
MacBook Pro
Windows XP Home on Boot Camp
CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 4th Jun 2008 13:32
thanks i got it

The South Will Rise Again Software Development Comp.
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 4th Jun 2008 21:08
If you look in the Dark Dungeon demo code, you'll find a showFPs() function, it uses... wsprintf?

If you can do any models for FW, reply to the FleetWars thread.

Click here!
unitech
17
Years of Service
User Offline
Joined: 27th Jun 2007
Location:
Posted: 4th Jun 2008 21:49
FYI, many reports of Frame rate display being buggy. I dont remeber why, but you can search.
SunDawg
19
Years of Service
User Offline
Joined: 21st Dec 2004
Location: Massachusetts
Posted: 4th Jun 2008 22:27
@Zuka:
You can use sprintf, and I personally prefer that method.




My site, for various stuff that I make.

Login to post a reply

Server time is: 2024-11-20 11:33:36
Your offset time is: 2024-11-20 11:33:36