Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

RolandofGilead

a dll question

This topic is 6030 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
1) The entire DLL.
2) Yes, noone is using overlays anymore.

And the OS is always free to send memory pages to disk swap if it runs out of RAM.

Share this post


Link to post
Share on other sites
Not true actually. The DLL is demand paged into memory. So, if there is a part of the DLL that you don''t use, then it is never actually loaded off the disk. The DLL is memory mapped, so depending on the internals of the mem mapping APIs on Win32, the entire range of pages for the DLL is probably reserved, but only commited and paged in from disk when they each page is accessed.

Of course, for all intensive purposes, and probably as far as anyone cares, the entire DLL is loaded =) meaning that you don''t have to explicitly load pieces of it yourself.

EXE''s are the same (demand paged from disk).

A good example of this is wrt resources. If you have a big .AVI file in your resources, it wont actually take up physical memory until you try to access it, at which point it will be loaded (and stay resident until the process exits).


-Brannon

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!