I'm using the most up to date version of Max and this is the code:
SuperStrict
'Pixmap Testing
Global G_WIDTH:Int = 800
Global G_HEIGHT:Int = 600
Global image:TImage = LoadImage("image.jpg")
Graphics G_WIDTH,G_HEIGHT
While KeyDown(KEY_ESCAPE) = False
Cls
DrawImage(image,0,0)
DrawText(GCMemAlloced(),20,20)
'DrawText(GCCollect(),20,40)
Flip
Wend
End
Run it (using any image you have) and watch the number go up and up, at least that is what happens on my machine.
Then run it again with the second draw text commented back in.
Is this right?
SuperStrict
'Pixmap Testing
Global G_WIDTH:Int = 800
Global G_HEIGHT:Int = 600
Global image:TImage = LoadImage("image.jpg")
Graphics G_WIDTH,G_HEIGHT
While KeyDown(KEY_ESCAPE) = False
Cls
DrawImage(image,0,0)
DrawText(GCMemAlloced(),20,20)
'DrawText(GCCollect(),20,40)
Flip
Wend
End
Run it (using any image you have) and watch the number go up and up, at least that is what happens on my machine.
Then run it again with the second draw text commented back in.
Is this right?