look at these 2 code, it's the same, only difference is that i copyrect to an imagebuffer instead of the same backbuffer, there's a big speed difference beetween the 2
i wonder why ...
anyone have tips about that ? or it's a bug ?
And
anyone have an idea of why such a speed difference ?
i'm using b+ on 1.4 ghz P4, radeon 9600
i wonder why ...
anyone have tips about that ? or it's a bug ?
Graphics 800,600,32,0 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 For a= 1 To 100 CopyRect 0,400+a,800,1,0,600-a Next Flip Until KeyDown(1)
And
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 For a= 1 To 100 CopyRect 0,400+a,800,1,0,100-a,BackBuffer,ImageBuffer(miror) Next DrawImage miror,0,500 Flip Until KeyDown(1)
anyone have an idea of why such a speed difference ?
i'm using b+ on 1.4 ghz P4, radeon 9600