Jump to content

Announcing our new website

To find out the latest about our new website, visit Game Dev Unlimited

- - - - -

[ Scripting Utility ] FPS Display


  • You cannot reply to this topic
1 reply to this topic

#1 kellessdee

    mrrow ~!

  • Moderator
  • 901 posts

Posted 10 September 2011 - 05:27 PM

Hey everyone! I decided to script an accurate FPS Display into RPG Maker for my project. I was planning on using it to help me find where code should be optimized, as well as to accurately test my game's/script's performance on lower-end machines, and decided to post it here, just in case someone else finds it useful.

Frame Rate Display



Written By: kellessdee

Version: 1.00.0


Description said:

This Script calculates the frame rate based off of the system clock, and is calculated each second, thus providing an accurate reading of the game's frame rate. This would be most useful for optimization of code (find exact dips in Frame rate, slowdowns, etc.) or for seeing how well the game runs on a Lower-end machine (perhaps to get a fairly accurate minimum requirements)

Instructions said:

All you need to do is create a global variable as an instance of FPS_Display (creating it in main would probably be best/easiest)
$fps = FPS_Display.new
It is updated and handled through Graphics.update, so you don't have to do anything else.
The F5 key toggles the Frame Rate Display by default. You can configure the key in the FPS_Display CONFIGURATION section.

Credits said:

--kellessdee

Screenshots said:

Attachment fps.png
yea, there isn't much to show

Combatibility Issues said:

None, as of yet.

Script said:

Spoiler

Attached Files

  • Attached File  fps.png   65.64K   19 downloads


#2 NuKa_BuBble

    Newbie

  • Member
  • 21 posts

Posted 10 September 2011 - 08:55 PM

Nice script! :alright:
I have an idea for the version 1.1, you can put a HUD make with an image.





0 user(s) are reading this topic

members, guests, anonymous users