OK I can 100% confirm that that all input (e.g. keys) is affected because it's a rendering lag, and that I was chasing a wild goose when just thinking of it as mouse lag.
Try this code:
It clearly shows there is a lag when using keys too, and that the fix works!
Try this code:
'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 AutoMidHandle True image:TImage = LoadImage("arrow.bmp") 'any 32x32 image Local fix = 0 mx = 300 my = 200 While Not KeyHit(KEY_ESCAPE) Cls If KeyHit(KEY_SPACE) Then fix = 1 - fix If KeyDown(KEY_Z) Then mx = mx - 10 If KeyDown(KEY_X) Then mx = mx + 10 SetScale 8,8 For i = 0 To 1000 DrawImage image,mx,my Next SetScale 1, 1 DrawText "Fix = " + fix, 12, 12 Flip If fix If TD3D7Max2DDriver(_max2dDriver) While DDERR_WASSTILLDRAWING = PrimaryDevice.PrimarySurface.GetBltStatus(DDGBS_ISBLTDONE) ; Wend EndIf EndIf Wend End
It clearly shows there is a lag when using keys too, and that the fix works!