Jump to content
  • Advertisement

Archived

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

Qoy

Small mouse flicker

This topic is 6117 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

$5 on Mouse Cursor Acceleration Artifact.

Magmai Kai Holmlor

"Oh, like you''ve never written buggy code" - Lee

"What I see is a system that _could do anything - but currently does nothing !" - Anonymous CEO

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
I think it has to do with the frame updates. What I believe is happening is that when you setCursorPos() and then followed by showCursor() they are both executed on the same frame. Internally, the mouse location is changed before the show command is processed, but since it''s done almost simultaneously, the mouse would appear first before the frame updates to the correct location in the next frame - that would account for your flicker. Try to see if you can showCursor() in the following frame and hopefully that solves your problem.

Share this post


Link to post
Share on other sites
That''s what I was thinking too, but I didn''t think of showing the cursor on the following frame. That''s a good idea, I''ll try it.

Thanks!

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!