buffer/debug question

Blitz3D Forums/Blitz3D Beginners Area/buffer/debug question

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Ok, here's solution #2:

-------------------------------------
Graphics 1024,768
ScreenHolderHandle=CreateImage(1024,768)
While Not KeyHit(1)
SetBuffer ImageBuffer(ScreenHolderHandle)
Color Rand(1,255),Rand(1,255),Rand(1,255)
Oval 200+Rand(1,50),350+Rand(1,50), 5,5,1
SetBuffer BackBuffer()
Cls
TileImage ScreenHolderHandle,0,0
Delay 100
Flip
WaitKey
Wend
-------------------------------------

This seems to work with or without debug, doesn't produce any flicker, and (I presume) will not be a problem for those with #D cards set to triple buffering.