How to show the framerate in a GUI

Hi, I am making a info GUI so I need to know how to do make it show up and update.


Draws it in the upper left hand corner of your screen, for example.

Thanks so much

FrameTime returns the time it took to render the last frame, which is usually ~0.0001. To get the framerate, do something like this…

[lua]local framerate = 1 / FrameTime( );[/lua]

You get 1,000 fps?


Fps is a none linear measurement so I doubt it.