SuperStrict
Import sidesign.minib3d
Graphics3D(640, 480, 32, 2)
Local count:Int
While Not KeyHit(KEY_Escape)
Local tex:TTexture = CreateTexture(1024, 1024)'LoadTexture("test.jpg")
FreeTexture(tex)
GCCollect() ' Force a collect to make it easier to watch memory usage
count = count + 1
If(KeyHit(KEY_Space))
Print count
End If
Wend
watching memory usage of this test app it just goes up and up till it crashes. If you pause between the load and the free, and compare the memory usage to what it is after the free there is no change. basically freeing a texture doesn't release it. looking at TTexture.FreeTexture() it looks like I never unbinds the openGL texture...
just reinstalled 0.531 from the link in the sticky thread to ensure I wasn't using something broken and outdated.
|