Jump to content
  • Advertisement

Archived

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

DarkEmpire

Memory Management

This topic is 6019 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

Hi, Do you know where i can find tutorials, articles, Source-Code about Memory Management ? I would like to create a memory manager, but i would like to find knowledge about that topic. Thanks Esteban Edited by - darkempire on December 29, 2001 8:03:38 PM Edited by - darkempire on December 29, 2001 8:04:19 PM

Share this post


Link to post
Share on other sites
Advertisement
The first question you need to ask, is why would you want to create a memory manager?

There are good reasons to do so.. but if you are familiar with those reasons, then you wouldn''t be asking this question =).


-Brannon

Share this post


Link to post
Share on other sites
Sorry for my english, it is not good.

By "Knowledge", i wanted to explain that i want articles / tutorials to know the most efficient way (algorithm) to implement a memory manager.

Indeed, the memory manager must be efficient, and allocation / deallocation fast... I would like to redirect most common allocations away from malloc() and into preallocated blocks of memory. We must be careful about fragmentation, etc.

But what is the most efficient way to do it?

An idea is to keep non used object in a list instead of deleting them, but all object don''t have the same size (in bytes), so it is not the best idea (that is my opinion)

That is why i need articles / tutorial.

Thanks

Share this post


Link to post
Share on other sites
I don''t know of any online tutorials, but there are some great articles in ''Game Programming Gems'' first edition.

My Homepage
How many Microsoft employees does it take to screw in a light bulb?
None, they just declare drakness as a new standard.

Share this post


Link to post
Share on other sites
Here is an article on memory management by Paul Nettle on Flipcode: http://www.flipcode.com/cgi-bin/msg.cgi?showThread=22August2000-MemoryManagement&forum=askmid&id=-1

Here is a actualy memory manager written by Paul Nettle: http://www.flipcode.com/cgi-bin/msg.cgi?showThread=12September2000-PresentingAMemoryManager&forum=askmid&id=-1


- Houdini

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!