Game Memory Management (11)

3 Name: #!/usr/bin/anonymous : 2008-05-05 01:13 ID:GG2FLEsy

>>2
Thanks. I've heard that malloc() is an expensive function though (in terms of performance) and should be used as little as possible. Also I expect a single game object to be only a few bytes in length. In my first version they'll only use ten bytes and I don't expect that they'll grow any larger in later versions.

I'll also code a particle and decal (used for the player's tracks) system for the game eventually which will add be very similar to the object system but will be allocating and freeing at a much faster rate. Should I used linked lists for these to?

Thanks again for your reply.

This thread has been closed. You cannot post in this thread any longer.