Skip to main content
gamedev.net
🔒 Locked

Avoid choppy mouse?

Started by DvDmanDT 0 replies 600+ views
Original Post
DvDmanDT
DvDmanDT
How can I avoid getting my mouse choppy (for an RTS)? Currently, we update the mouse position in the game loop, which is followed by a draw.. One way to improve it would be to have the mouse updating in a loop.. Is there any other way? The game runs at 23 FPS or so.. Also, can anyone explain IDirectInput8::ConfigureDevices()? I don't really understand the MSDN page for it.. :p Should/could I use the windows mouse functions?
ghosted
ghosted
Well, I know this article may go some way to solving the problem although I've never tried it so can't comment on the quality or ease of implementation.

I'm guessing you are currently using a quad rendered at the current mouse position with the standard windows cursor hidden. You could simply use the stanard windows cursor (as it's not limited to framerate) and replace it with your own, although that may restrict you to a grayscale palette but it shouldn't be too hard to do. I know I'd certainly prefer a non-laggy, yet dull mouse to a pretty one that sways horribly.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.