BlitzCoder Essentials
•
Home Page
•
About BlitzCoder
•
Contributors
•
Terms of Use
•
Email Us
Main Areas
•
BlitzCoder Chat
•
Discussions
•
Articles/Tutorials
•
Code Database
•
Link Database
•
Showcase Area
•
Worklogs
•
Competitions
Special Areas
•
Undocumented
Other Blitz Sites
•
Blitz Basic Home
•
Blitz Showcase
•
BlitzPlay Library
Forum Login
Username:
Password:
•
Register Now!
BlitzCoder Code Archives Page
Main Codes Page
"2 line FPS code"
, by andreas_blixt
This code has now been updated to be much more accurate and it still uses 2 lines! To get the current FPS, just use CurFPS#.
Code
; Main loop start Start = MilliSecs() ; Your main loop code goes here Print "Current FPS: " + CurFPS# ; Your main loop code goes here CurFPS# = 1000.0 / (MilliSecs() - Start) ; Main loop end
Copyright(c) 2000-2004, BlitzCoder. All Rights Reserved.
Code software created by Krylar's Kreations