Yes it s really faster ... But is it possible to switch a bank memory into an imagebuffer
Graphics3D 800,600,32,2
SetBuffer BackBuffer()
Global nicolas
nicolas = CreateImage(512,512)
bk = CreateBank(512*512*4)
colorrgb = 210 Or (100 Shl 8) Or (10 Shl 16)
start = MilliSecs()
For x=1 To 512
For y=1 To 512
WritePixel x,y,colorrgb,ImageBuffer(nicolas)
Next
Next
Print MilliSecs()-start
start = MilliSecs()
For y=0 To 511
For x=0 To 511
PokeInt bk,(y*512+x )*4,colorrgb
Next
Next
Print MilliSecs()-start
WaitKey()
Graphics3D 800,600,32,2
SetBuffer BackBuffer()
Global nicolas
nicolas = CreateImage(512,512)
bk = CreateBank(512*512*4)
colorrgb = 210 Or (100 Shl 8) Or (10 Shl 16)
start = MilliSecs()
For x=1 To 512
For y=1 To 512
WritePixel x,y,colorrgb,ImageBuffer(nicolas)
Next
Next
Print MilliSecs()-start
start = MilliSecs()
For y=0 To 511
For x=0 To 511
PokeInt bk,(y*512+x )*4,colorrgb
Next
Next
Print MilliSecs()-start
WaitKey()