View previous topic :: View next topic |
Author |
Message |
Baaleos
Joined: 02 Sep 2007 Posts: 830
|
Posted: Wed Aug 14, 2013 12:19 Post subject: Server FPS from NWNX |
|
|
Has anyone tried hooking/calling the following function?
CServerExoApp::GetFPS(void)
It might sound weird, but it sounds like a good function that if it could be invoked from nwnScript could be used for performance measurement.
I coded on my own Garrys Mod server, the ability to get fps, and then used the FPS values to affect the rapidness of certain functions.
Eg: If you want functions/effects to repeat rapidly - the downside is that they can drain FPS, but what I did was use the FPS value of the server, to increase or decrease the time delay between firing of each function/effect, to keep the FPS as close to my target value as possible.
Eg: If the FPS starts to go down, increase the delay to lessen the drain on FPS.
If there is alot of spare FPS (FPS is higher than the target), then the Delay can be shortened to make use of those spare FPS. |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Thu Aug 15, 2013 7:03 Post subject: |
|
|
This function doesn't return what you expect. FPS is a constant value on the server (100.0) and is used for calculations in effects and combat actions. _________________ In Soviet Russia, NWN plays you! |
|
Back to top |
|
|
Baaleos
Joined: 02 Sep 2007 Posts: 830
|
Posted: Thu Aug 15, 2013 11:03 Post subject: ah |
|
|
Ah, ok,
No probs
Would a been interesting if there was a fps measurement we could grab. |
|
Back to top |
|
|
Lokey
Joined: 02 Jan 2005 Posts: 158
|
Posted: Thu Jan 01, 2015 21:44 Post subject: |
|
|
There's a couple posts on it. Search this forum for chroot. _________________ Neversummer PW NWNx powered mayhem |
|
Back to top |
|
|
|