i use ent_purge to clear thr memory

Code:
ent_purge(my);ent_remove(my);




ent_purge(ENTITY*);
Releases texture memory, meshes and decals used by the entity. Useful for freeing the video memory when entities of a certain type won't be visible anymore. Video memory is automatically allocated again when the entity is seen the next time - so this function won't do any harm. However, any functions affecting the entity mesh or texture - such as bmap_to_alpha - must be performed again. Thus ent_purge followed by bmap_to_alpha can also be used to change the alpha factor of an entity texture. In a multiplayer system this instruction only affects the current PC.

Last edited by GameScore; 09/17/12 07:33.