MrValentine, I think it's confusing when you say resizing the window flushes video memory. Resizing the window will not flush video memory. Setting the display mode will.
Append Object is allocating system memory that is not being released.
#constant FALSE 0
#constant TRUE not FALSE
flag as boolean
flag = FALSE
sync on
sync rate 60
backdrop on
autocam off
position camera 0.0, 0.0, -50.0
make object cube 1, 20.0
do
if (spacekey() and flag=FALSE)
flag = TRUE
set window size 800, 600
endif
sync
yrotate object 1, wrapvalue(object angle y(1)+1.0)
loop
#constant FALSE 0
#constant TRUE not FALSE
flag as boolean
flag = FALSE
sync on
sync rate 60
backdrop on
autocam off
position camera 0.0, 0.0, -50.0
make object cube 1, 20.0
do
if (spacekey() and flag=FALSE)
flag = TRUE
set display mode 800, 600, screen depth()
endif
sync
yrotate object 1, wrapvalue(object angle y(1)+1.0)
loop