Strange Slowdown

Blitz3D Forums/Blitz3D Programming/Strange Slowdown

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I just had this problem.
My guess is it's your/blitz's mousehandling.


Try putting these lines after Flip:

For n=1 to 10 ; or 20
Delay 1 ;or 2
Next

Delay It?
Well, just to test if it is indeed mouseevents queing up.
That loop lets Blitz get rid of a few of the queed mouse events.

In my latest app, I fixed it by waiting for mouse/keyboard events in a loop after Flip statement. Not a good soulution for a game, but in this case it worked ok.

I'm still looking for a better workaround, maybe a dll with a mouse hook will work...