Buffering? This is Strange

Blitz3D Forums/Blitz3D Beginners Area/Buffering? This is Strange

_PJ_(Posted 2011) [#1]
Graphics 800,600,32,6
SetBuffer BackBuffer()

Local f

For f=1 To 16
	Color f*16+128,160,160
	Text 0,18*f,Str(f)
Next	


Anyone know why this generated list is visible without a Flip command?
Surely Text shouldn't be printing straight to the frontbuffer, should it?


_PJ_(Posted 2011) [#2]
hrmm.. nevermind - I think it's something to do with Debug mode - at least, in IDEal. If I run it with debug disabled, the screen is blank as intended without a Flip.


-- edit
OR in Debug Mode, I can add an 'End' and there's nothing displayed

I uess either blitzcc or IDEal adds a Flip for you on compile, to help you see what's happening, if there hasn't been one throughout the entire prog?
By adding "End" to the end, it exits before the 'added' Flip can be exectued
maybe.... ?

Last edited 2011


Warner(Posted 2011) [#3]
Try putting Flip at the start of the program. I think it needs to initialize the pointer to the backbuffer somehow:
Graphics 800,600,32,6
SetBuffer BackBuffer()
Flip

Local f

For f=1 To 16
	Color f*16+128,160,160
	Text 0,18*f,Str(f)
Next	

WaitKey


Last edited 2011