Advertisement

Mouse Lag

Started by March 10, 2000 10:33 AM
0 comments, last by Gf11speed 24 years, 9 months ago
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.
Greg FieldsSyntasoft Gameswww.syntasoft.comPost-Time Horse Racing (Available Now)
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.

This topic is closed to new replies.

Advertisement