logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Server FPS from NWNX

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development
View previous topic :: View next topic  
Author Message
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Wed Aug 14, 2013 12:19    Post subject: Server FPS from NWNX Reply with quote

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
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Thu Aug 15, 2013 7:03    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Thu Aug 15, 2013 11:03    Post subject: ah Reply with quote

Ah, ok,
No probs

Would a been interesting if there was a fps measurement we could grab.
Back to top
View user's profile Send private message
Lokey



Joined: 02 Jan 2005
Posts: 158

PostPosted: Thu Jan 01, 2015 21:44    Post subject: Reply with quote

There's a couple posts on it. Search this forum for chroot.
_________________
Neversummer PW NWNx powered mayhem Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group