Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Mouse Lag

This topic is 6647 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

While working with the mouse, there is a particular lag. Anyhow, I''m doing it like this: int mouseX,mouseY; mouseX+=mouse_state.lX; mouseY+=mouse_state.lY; DrawBitmap(Cursor,mouseX,mouseY); Is there any way I can eliminate this lag? Do you know exactly what I mean when I say mouse lag? It can''t possibly be the computer, I have a 600mhz, 64RAM, blah blah... Thanks for you time.

Share this post


Link to post
Share on other sites
Advertisement
What is your framerate? Low framerates will give you higher lag and will also give you ''choppy'' movement. There is an article here on GameDev on how to handle mousemovement separately from the scenerendering. I believe it''s called "Decoupling the mouse from the framerate".

Are you checking mousemovement before or after rendering the scene? If you are checking the movement before rendering, your mousemovement is delayed by the time it takes to render the scene.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!