In my seemingly never ending quest for the ultimate tweak I have stumbled upon an issue with drawing pixmaps. I can not draw more than 5 to the screen in succession.
Take the following code as an example, if I increase the number of bobs to 6 then it appears that Bmax loses the render device.
THIS IS A DIRECTX ISSUE NOT OPENGL
Perhaps it is because BMAX locks and unlocks the backbuffer everytime it draws an image? Ideas? Does it do the same on your machine?
Take the following code as an example, if I increase the number of bobs to 6 then it appears that Bmax loses the render device.
THIS IS A DIRECTX ISSUE NOT OPENGL
Strict DXRenderType = RGB Graphics 640,480,0,NOSYNC Local Bobs:Int = 5 Local im1:TPixmap = LoadPixmap("image.png") im1 = MaskPixmap(im1,255,255,255) Delay(1000) Local now:Int = MilliSecs() For Local a = 1 To Bobs DrawPixmap(im1,Rand(0,600),Rand(0,440)) Next Flip Print MilliSecs()-now WaitKey()
Perhaps it is because BMAX locks and unlocks the backbuffer everytime it draws an image? Ideas? Does it do the same on your machine?