Code: Select all
CreateImage (0, 500, 300, 32)
CreateImage (1, 499, 299, 32)
CreateImage (2, 499, 300, 32)
CreateImage (3, 500, 299, 32)
CreateImage (4, 500, 300, 32)
CreateImage (5, 500, 301, 32)
CreateImage (6, 501, 300, 32)
CreateImage (7, 501, 301, 32)
StartDrawing (ImageOutput (0))
Box (0, 0, 500, 300, #Red)
StopDrawing()
For j = 1 To 7
time = ElapsedMilliseconds()
StartDrawing (ImageOutput (j))
For i = 1 To 10000
DrawImage (ImageID (0), 0, 0)
Next
StopDrawing()
time = ElapsedMilliseconds() - time
Debug "" + ImageWidth(j) + " x " + ImageHeight(j) + " = " + time + " ms"
Next jPb x32:
499 x 299 = 3697 ms
499 x 300 = 3713 ms
500 x 299 = 3729 ms
500 x 300 = 5553 ms
500 x 301 = 3744 ms
501 x 300 = 3744 ms
501 x 301 = 3698 ms
Pb x64:
499 x 299 = 2200 ms
499 x 300 = 2278 ms
500 x 299 = 2215 ms
500 x 300 = 4446 ms
500 x 301 = 2215 ms
501 x 300 = 2465 ms
501 x 301 = 2184 ms





