Hi,
i have serious problems to clean up the memory.
i need to call Graphics3D in different resolutions as an dll function.
here is a simplyfied example:
----------------------------------------------------------------------
Import "minib3d.bmx"
Framework brl.blitz
Repeat
Init_3D()
DebugLog "mem " + GCMemAlloced()
key = WaitKey()
Until key = KEY_ESCAPE
Function Init_3D()
Graphics3D(400,300,32,2)
Local cam = CreateCamera()
Local cube = CreateCube()
PositionEntity cam,0,1,-4
PointEntity cam, cube
RenderWorld()
Flip
FreeEntity cam
FreeEntity cube
End Function
----------------------------------------------------------------------
i used FreeEntity to clean my 3D World, but the memory is still increasing after each call. Any Ideas?
Thanks
Stephan
i have serious problems to clean up the memory.
i need to call Graphics3D in different resolutions as an dll function.
here is a simplyfied example:
----------------------------------------------------------------------
Import "minib3d.bmx"
Framework brl.blitz
Repeat
Init_3D()
DebugLog "mem " + GCMemAlloced()
key = WaitKey()
Until key = KEY_ESCAPE
Function Init_3D()
Graphics3D(400,300,32,2)
Local cam = CreateCamera()
Local cube = CreateCube()
PositionEntity cam,0,1,-4
PointEntity cam, cube
RenderWorld()
Flip
FreeEntity cam
FreeEntity cube
End Function
----------------------------------------------------------------------
i used FreeEntity to clean my 3D World, but the memory is still increasing after each call. Any Ideas?
Thanks
Stephan