Quote:Original post by PalidineQuote:Original post by PaoloStoppa
It should be very simple, as it is often required in programming.
Nothing is simple when programming for consoles. non-PC hardware is _very_ fussy about how and when things are done.Quote:Original post by nagromo
It's not a free operation, either, although it should be pretty fast.
Memory allocation is often one of the slowest operations you can do. Certainly it appears "fast" for things with long lifetimes, but allocating memory will often be a bottleneck for things like particle engines or projectiles. That's why game programmers spend so much time writing memory managers that do only a single malloc at the beginning of the application and then just pass pointers to people asking for memory.
-me
Okey, i did not know, that this is such a difficult thing at game programming. Perhaps, it is quicker, if I seek for an existing memory allocation code, and then I use that ?