Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: RandomTiger on June 01, 2003, 09:45:52 am
-
There are a fair few mallocs happening in game time.
Put a flag in game_frame() and check it in vm_malloc to get details.
-
Mallocs?
-
vector/matrix resize function
-
Memory allocation - allocates space to a block of specified size and retunrs the pointer to the first allocated byte. Returns null pointer if no available space.
-
and what exactly does it do ingame, for those like me who aren't at all enlightened by your techies explanations? :D
-
its slow
-
sound.cpp with ds.cpp and animplay.cpp are all guilty.
-
Originally posted by Venom
and what exactly does it do ingame, for those like me who aren't at all enlightened by your techies explanations? :D
Allocates memory space for storage of variables (i.e. values used by the program). I remember using it doing some C programs for LLP at uni (albeit only for a semester).
-
mallocs aren't that bad, compared to large amounts of static arrays, which cause of-so-many cache misses (*points at current decal code*). Remember that the faster the processor is, the more impact a cache-miss has.