Hi all,
I've been playing around with the movie commands in blitzplus and had hoped that this issue which was present in blitz3d was not in blitzplus. In earlier versions of blitz3d the movie commands had a memory leak on calling closemovie. However,although it had been fixed in blitz3d at around 1.9x it still seems to be part of blitzplus.
Here is sample code which demonstrates the issue, press space bar or allow the movie to finish and the available video memory will continue to drop each time the same movie is closed/opened. You will need to supply your own mpeg file.
Graphics 800,600,32,2
avi=OpenMovie ("demo.mpg")
Repeat
Cls
count=count+1
If MilliSecs()>time+1000 Then
time=MilliSecs()
fps=count
count=0
EndIf
DrawMovie avi,0,0
Text 0,0,fps
Text 500,15,AvailVidMem()
Flip
If MoviePlaying(avi)=0 Or KeyHit(57) Then
CloseMovie avi
avi=OpenMovie("demo.mpg")
EndIf
Until KeyDown(1)
CloseMovie avi
End
|