Does Freeentity command clear associated textures?

Blitz3D Forums/Blitz3D Beginners Area/Does Freeentity command clear associated textures?

Kendo(Posted 2008) [#1]
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


Mortiis(Posted 2008) [#2]
FreeTexture ;)


Kendo(Posted 2008) [#3]
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.


KillerX(Posted 2008) [#4]
Try
Freetexture GetBrushTexture(GetEntityBrush(entity))



Kendo(Posted 2008) [#5]
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.


Stevie G(Posted 2008) [#6]
You have to free the bush when you use getentitybrush iirc.