Scripts / [W] Code to display FPS, Frames per Second

Author
Message
perelect
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 18th May 2015 11:35
Do we have any commands to display the Frames per Second.
I may be old, but at least my memory still ....hmmm

Pavilion dv6 Notebook, Intel(R) Core(TM) i5-2410M CPU @ 2.30 GHz, Win 7 64 bit, 16 GB Ram, Radeon (TM) HD 6490M, 2789 MB Memory. Resolution 1366x768, Intel(R) HD Graphics 3000. (WEI 5.8)
unfamillia
Forum Support
14
Years of Service
User Offline
Joined: 26th Jul 2010
Location: Preston, Lancashire
Posted: 18th May 2015 11:37
Pressing F11 will bring up the FPS as true as can be with extra HUD's on screen.

Cheers

Jay.




perelect
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 18th May 2015 17:26
Thanks Jay.

I was actually after the command to call it, in lua. scripting for a diagnostics script I am writing.

I can always add it in later.
I may be old, but at least my memory still ....hmmm

Pavilion dv6 Notebook, Intel(R) Core(TM) i5-2410M CPU @ 2.30 GHz, Win 7 64 bit, 16 GB Ram, Radeon (TM) HD 6490M, 2789 MB Memory. Resolution 1366x768, Intel(R) HD Graphics 3000. (WEI 5.8)
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 18th May 2015 17:50
there's no command as such but here's the basic idea
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
perelect
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 18th May 2015 18:04
Thanks smallg,

Why didn't I think of that..

Count the amount of times a letter is drawn per second, of course..

Thankyou
I may be old, but at least my memory still ....hmmm

Pavilion dv6 Notebook, Intel(R) Core(TM) i5-2410M CPU @ 2.30 GHz, Win 7 64 bit, 16 GB Ram, Radeon (TM) HD 6490M, 2789 MB Memory. Resolution 1366x768, Intel(R) HD Graphics 3000. (WEI 5.8)
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 18th May 2015 18:41
i tried it as a function but it doesnt seem to work correctly (using os.time() so it wont crash GG)
i guess the best thing to do is set the fps variable as a global and keep the script running on the map the whole time.
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
perelect
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 19th May 2015 12:26
Thanks smallg,

Thanks for the tip about "using os.time() so it wont crash GG.

I would not of thought of that.

Running it all the time is not an issue as I can toggle to on/off anyway.

Its really only a learning thing for the moment in a diagnostics script I am playing with.

I may be old, but at least my memory still ....hmmm

Pavilion dv6 Notebook, Intel(R) Core(TM) i5-2410M CPU @ 2.30 GHz, Win 7 64 bit, 16 GB Ram, Radeon (TM) HD 6490M, 2789 MB Memory. Resolution 1366x768, Intel(R) HD Graphics 3000. (WEI 5.8)

Login to post a reply

Server time is: 2024-12-22 01:08:37
Your offset time is: 2024-12-22 01:08:37