Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
25 May, 2013, 17:20:57 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: Calculate FPS? -  (Read 678 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
BlakPilar
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 20 February, 2013, 02:38:22
Date Registered: 16 July, 2011, 02:50:55
Posts: 735


Topic starter
Total Post Ratings: +43

View Profile
« on: 12 February, 2012, 21:23:34 »
0

I was just wondering how, if at all, one could calculate the frames per second of an Axe program. I have an engine I'm writing in my spare time and I thought it'd be useful to see how many FPS it gets to compare my attempts at optimization as I work on it.
Logged
Runer112
Project Author
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 07:49:03
Date Registered: 02 July, 2009, 06:38:05
Posts: 1680


Total Post Ratings: +493

View Profile
« Reply #1 on: 12 February, 2012, 21:28:47 »
0

The easiest solution is to test your program in Wabbitemu without the skin enabled. You should then see Wabbitemu's built-in FPS feature on the bottom of the window, which should be accurate for any Axe program. (It may not be accurate for assembly programs with custom screen updating methods, but you don't need to worry about that)

However, if you need an actual FPS counter built into your program, I would suggest using interrupts in your program and using them to keep track of and display an approximate FPS.
Logged
BlakPilar
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 20 February, 2013, 02:38:22
Date Registered: 16 July, 2011, 02:50:55
Posts: 735


Topic starter
Total Post Ratings: +43

View Profile
« Reply #2 on: 12 February, 2012, 21:34:22 »
0

The easiest solution is to test your program in Wabbitemu without the skin enabled.

Ahh, thank you! I don't know anything about interrupts, though, so I'll just be content with Wabbit's lol.
Logged
Eiyeron
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 07 January, 2013, 20:29:04
Date Registered: 09 August, 2011, 16:51:22
Location: Err 404.
Posts: 552


Total Post Ratings: +18

View Profile WWW
« Reply #3 on: 12 February, 2012, 22:24:34 »
0

Or within the main loop, lake a counter.
If you know how to access the rtc, you can how how many frames are drawn between two clock ticks, and show it.
Logged




BlakPilar
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 20 February, 2013, 02:38:22
Date Registered: 16 July, 2011, 02:50:55
Posts: 735


Topic starter
Total Post Ratings: +43

View Profile
« Reply #4 on: 12 February, 2012, 22:26:27 »
0

Yeah, see, I don't even know what RTC stands for lol.
Logged
Eiyeron
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 07 January, 2013, 20:29:04
Date Registered: 09 August, 2011, 16:51:22
Location: Err 404.
Posts: 552


Total Post Ratings: +18

View Profile WWW
« Reply #5 on: 12 February, 2012, 22:55:49 »
0

Real time clock, what calculates the crystal ticks into time.
Logged




Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.256 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.