Thread: extreme lag
View Single Post
  #11  
Old 11-03-2007, 04:15 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Quote:
Originally Posted by Stefan View Post
Optimization in terms of reducing the memory usage. Each player had hundreds of clientr.muditem_ flags, the original scripters probably thought those are deleted at logout, but they are not, it's clientr.mud_. So those flags required a huge amount of memory on server-side and also made login slower. Also there were two dbnpcs with a huge amount of variables which were not used anyway but it was adding more and more.
Did you rewrite the system (I sure hope so) or just remove unnecessary flags? I know the second lot of item flags are just descriptions of items and as such are unnecessary. It's an awful system. Instead of the current method, could just store them clientside in a temporary space: retrieve only what you need when you need. Depends on what you did though .

Quote:
Originally Posted by Stefan View Post
There should eventually be some tools to measure the memory usage of npcs, players and levels.
/memstats

Last edited by Twinny; 11-03-2007 at 04:36 PM..
Reply With Quote