big speed hit ...

BlitzPlus Forums/BlitzPlus Programming/big speed hit ...

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.

it's not the reason, it seem that drawing operation to an imagebuffer is wayyyy slower than a drawing operation to mainscreen buffer
as i added in the code the drawimage command to check if it's why i have an as big speed hit

also, note that i do 100 time the copyrect stuff and just 1 more drawing operation in the second example, so the speed hit would be 1 percent more...



Graphics 800,600,32,0
miror=CreateImage(800,100)
Dim x(100),y(100)
For a=0 To 100
x(a)=Rand(800)
y(a)=Rand(400)
Text x(a),y(a),"this is a test"
Next
Repeat
Cls
For t=0 To 100
x(t)=x(t)+Rand(5)-3
y(t)=y(t)+Rand(5)-3
Text x(t),y(t),"this is a test"
Next
DrawImage miror,0,500
For a= 1 To 100
	CopyRect 0,400+a,800,1,0,600-a
Next
Flip
Until KeyDown(1)