When you create a sphere, DBP turns the backdrop on. That's your problem. The fix is to add this after you delete your sphere:
rem turn backdrop back off
backdrop off
rem clear the screen
cls
rem reset cursor so text is printed at the top of the screen again
set cursor 0,0
Let's discuss screen settings. Here are the commands:
sync on
sync off
sync rate
backdrop on
backdrop off
sync
Alright, so what does each command do? Turning
sync on will give you control of when to render to the screen. When sync is on, the screen will only be updated when you use the command
sync. By default the sync is off, which causes the screen to be refreshed after every single command. This is very rarely needed.
sync on
do
set cursor 0 , 0
print "This is text"
rem sync
loop
end
Run that. No text, huh? Try turning the sync off. You will see text again. After that, try turning the sync back on and take the "rem" away from the
sync command. Text text will be rendered to the screen.
What does
sync rate do? This command defines how fast you can update the screen per second. Here's an example:
sync on
sync rate 60
do
cls
set cursor 0 , 0
print screen fps()
sync
loop
Try changing sync rate to 30 and see what happens.
Never go over 60 frames per second unless you know what you're doing. It does not make any sense because the monitor physically can't refresh faster than 60 frames per second. You'd be wasting GPU power.
Alright, so what is the backdrop? The backdrop is pretty much the picture you see on your screen. If we turn the backdrop on, this will cause the backdrop to clear itself before every screen update. The backdrop is off by default, which means that the backdrop isn't cleared before updating, which causes the new data being printed to the screen to accumulate.
Run this to see:
backdrop on
print "awesome"
print "sauce"
print "is"
print "awesome"
wait key
end
You should only be able to see "awesome". Turn the backdrop off, and you will see everything again. Note that we don't have to call
sync because sync is off by default.
Alright! So with that out of the way, you should now understand how to use screen settings.
TheComet
"Why geeks like computers: unzip, strip, touch, finger, grep, mount, fsck, more, yes, fsck, fsck, fsck, umount, sleep." - Unknown