mem_alloc
and mem_free
does in addition to what their main purpose is makes them be more then two to three times slower than a simple malloc
and free
. I'm not sure if it would make change fps-wise, but considering that they are called about 30 times per second when ingame, it's definitely more than just a negligible micro-optimization.mem_alloc
and mem_free
were used to keep control over the way memory is allocated, possibru to keep it less fragmentedmem_debug_dump
writes everything that is currently allocated to a file 'memory.txt'sv_register 1
, do I?