Does Freeentity command clear associated textures?
Blitz3D Forums/Blitz3D Beginners Area/Does Freeentity command clear associated textures?| 
 | ||
| Does Freeentity command clear associated textures? I ask because i have just noted that if i add a pretextured model (one which is using a number of sizeable textures) to my program  and immdeiately delete it there seems to be a noticeable memory loss which i otherwise cant explain. If the textures remain, is there a relatively easy way to remove them? As always a big thanks in advance | 
| 
 | ||
| FreeTexture ;) | 
| 
 | ||
| No Mortiis.  I can only use freetexture if i have set a texture up myself "in program" and thus know the texture's handle.  (at least that is how i understand matters) I am talking about an external, pre-textured model ie the textures are "baked" in. | 
| 
 | ||
| Try Freetexture GetBrushTexture(GetEntityBrush(entity)) | 
| 
 | ||
| Interesting, KillerX, thanks for your suggestion It has made a difference, reducing by some noticeable extent the remaining memory loss. But there is still a memory loss! Strange. | 
| 
 | ||
| You have to free the bush when you use getentitybrush iirc. |