'low poly and high fill rate causes the issue, solvable by flushing the driver's
'buffered frames using grab pixmap or locking a buffer with a large speed penalty.
'opengl is unaffected.
'change how many loops you do till you see the lag and not general slowdown
'this will vary from pc to pc
'SetGraphicsDriver GLMax2DDriver()
Graphics 800,600,0,0
AutoMidHandle True
image:TImage = LoadImage("arrow.png") 'any 32x32 image
While Not KeyHit(KEY_ESCAPE)
Cls
mx = MouseX()
my = MouseY()
SetScale 8,8
For i = 0 To 2000
DrawImage image,mx,my
Next
Flip 0
'insert workarounds here
Wend
End
Please adjust iterations till its not slow on your pc but illustrates clearly almost a second of lag. Ideal conditions are low poly and high fillrate.
GrabPixmap(0,0,2,2) solves issue but causes negative slowdown.
|