Server and scripting
vonstorm
Member Posts: 66
Not sure if this is the right place but here goes -
Has anyone else noticed that server performance slows over time?
at the beginning my areas are fast, spawns are good etc, but after a couple of hours zone transitions take longer, spawns are delayed etc. Is this bad scripting or does everyone have this problem over time. I have zero heartbeat scripts, have cleanup scripts on area exit - merchant clean scripts etc.
any insight would be helpful. If I can make the server run decent for 6 hours Im golden (12 would be nice).
Has anyone else noticed that server performance slows over time?
at the beginning my areas are fast, spawns are good etc, but after a couple of hours zone transitions take longer, spawns are delayed etc. Is this bad scripting or does everyone have this problem over time. I have zero heartbeat scripts, have cleanup scripts on area exit - merchant clean scripts etc.
any insight would be helpful. If I can make the server run decent for 6 hours Im golden (12 would be nice).
Post edited by vonstorm on
0
Comments
Ideally, you'd hook your server up on nwnx with the profiler plugin, and it'd give you a perfect breakdown of what is eating the perf and why. Linux only, though.
Some of that, I believe, is an imperfect garbage disposal system in NWN that gets stressed in larger modules with large numbers of players. You probably won't be able to make a module/server that can run continuously.
So, to meet your goal of 6ish hours, it's obviously gonna take some trial and error. Some places I'd start trying things:
* https://nwnlexicon.com/index.php?title=Lag_Busting
* Create more aggressive onDeath scripts for dead monsters (apply DestroyObject on death, for instance).
* Try DestoryArea and CreateArea to really shake the dirt off zones that aren't in use, but might be remembering more crap than you'd like.
... Basically, just nuke stuff that nobodies using and reform it. A policy that's worked great for me and, coincidentally, seems to be a go-to for many of our governments.
Its running ok now for a 6 hour session, so Ill up my game and go for 12
Thanks again for the insight.