PDA

View Full Version : Memory management



Catman
07-06-2002, 10:18 AM
Hello! I've got a question, but it is not directly an opengl question. I'm working on a game engine, so I thought some of you might be able to help me. I'm thinking of writing a memory management system, but I don't know if I should use the new operator or the VirtualAlloc + my own memory management (reserve, commit, freespace management). Which would be suitable or at least what is the difference between them? Thanks in advance.

Ozzy
07-06-2002, 09:41 PM
For sure it's *not* OpenGL related there,
concerning memory management you should get many != advices. Anyway, i've started to write some articles about this kind of stuff -> http://www.orkysquad.org (X-TRA section)

Most of the time, writing a memory manager is a *lost* of time and isn't required, depending on what u're supposed to code for? a 'game' or an 'operating system'.?? ;)

Anyhow think easy, think simple.

hth

[This message has been edited by Ozzy (edited 07-06-2002).]

Catman
07-07-2002, 09:21 AM
Thank you for the reply, I'll check that site...