Mouse lag

Just starting out? Need help? Post your questions and find answers here.
coco2
Enthusiast
Enthusiast
Posts: 368
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Mouse lag

Post by coco2 »

If you run my generic game engine found here: viewtopic.php?f=16&t=67371

You can switch between a window and full screen windowed mode with the F11 key. When it is in the full screen mode the mouse is laggy, does anyone have any idea why? It should be updated at 60 frames per second.

BTW- I originally posted this in Games but I moved it here, I hope you don't mind.
User avatar
Fig
Enthusiast
Enthusiast
Posts: 351
Joined: Thu Apr 30, 2009 5:23 pm
Location: Côtes d'Azur, France

Re: Mouse lag

Post by Fig »

It may be a known problem with fast gamer mouse.
http://www.purebasic.fr/english/viewtopic.php?p=454094
There are 2 methods to program bugless.
But only the third works fine.

Win10, Pb x64 5.71 LTS
coco2
Enthusiast
Enthusiast
Posts: 368
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Re: Mouse lag

Post by coco2 »

I think that is a separate issue, when I move the mouse fast it works fine. The problem I'm having is when I use the mouse with a window, it feels instant, but when I use the mouse in full screen using ExamineMouse() it feels delayed. I didn't think it's possible since the application is running at 60 FPS but you can tell the difference. Give it a try.
User avatar
Fig
Enthusiast
Enthusiast
Posts: 351
Joined: Thu Apr 30, 2009 5:23 pm
Location: Côtes d'Azur, France

Re: Mouse lag

Post by Fig »

(By the way, you should fix this constant: "constant #PB_MessageRequester_error can't be find" )
My mouse looks fuzzy in full screen (F11) in here, you are right... [edit]
I can't see any sprite, only a blue screen.
There are 2 methods to program bugless.
But only the third works fine.

Win10, Pb x64 5.71 LTS
Post Reply