[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Items loaded in memory

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Items loaded in memory
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please)
Maximum of 6000 characters. Text only please, no HTML.
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Wed 11 Apr 2007 08:13 AM (UTC)  quote  ]
Message
A running copy of SMAUG uses relatively little memory especially with respect to the massive amounts of memory available these days. My game, which is quite large, only uses 60mb. Let the OS take care of swapping memory out if needed.

I agree with Nick, the hit you will take by constantly referring to disk is going to be much slower. Just let the OS take care of swapping out unused memory and bringing it in when needed.

Memory management tricks are more important when you have a data set of, set, a gigabyte, and you absolutely must have the minimum possible in RAM because you have so much of it.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Wed 11 Apr 2007 08:02 AM (UTC)  quote  ]
Message
Areas are referenced almost all the time, it is hard to imagine a better way of storing them than in memory.

Conceivably you could load help data on request, however as a player somewhere is likely to be getting help on something fairly frequently, opening a file and reading it in, every few seconds, is likely to be a lot slower.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Wed 11 Apr 2007 04:57 AM (UTC)  quote  ]
Message
What would you change it to do?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Neves   USA  (75 posts)  [Biography] bio
Date Wed 11 Apr 2007 04:43 AM (UTC)  quote  ]
Message
I've noticed that the SMAUG lib loads things into memory, like areas, helpfiles, etc. I am wondering why does it do this, to save memory upon later request? If i was to change this would it cause increased lag?

-Mark
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


1,343 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]