• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Grimmy · Nov 10, 2010 at 04:47 PM · lagcursor

Why does my mouse cursor lag in windowed mode only??

My game runs online at around 35-40 fps in a window and the mouse lags wayy behind (I have set a new cursor image) and feels horrible, BUT as soon as I go full screen my fps still reads at 35-40 fps but my mouse is now smooth as a whistle.

Why is this? (and don't tell me my fps counter is wrong...its not)

:)

Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image StephanK · Nov 10, 2010 at 06:07 PM 0
Share

How are you moving your cursor? (code)

avatar image Grimmy · Nov 10, 2010 at 09:18 PM 0
Share

I'm using a gui.label. I think this it what's really slow (and maybe improves in full screen for some reason?) so I'm trying to see if just swapping the cursor to a mesh does the trick. The opnly problem with this method is that my cameras change from scene to scene so I need to write code to align/scale and rotate the cursor correctly for each camera.

Why can't gui.label just be fast? :(

avatar image Grimmy · Nov 10, 2010 at 09:33 PM 0
Share

Actually I just sped up the prosecc by making a cursor camera which is never destroyed and the cursor image a chile of that camera. I will report back on if this is a faster update than using a label assoon as I fix some other bits.

avatar image Grimmy · Nov 10, 2010 at 09:50 PM 0
Share

Hmm. Nope it looks like a mesh and a GUI.label update at the same speed at either fullscreen or just as slow in windowed.

But the difference between fullscreen and windowed is big. I have lots of mouse lag when windowed.(as a a mesh or GUI.Label)

avatar image Grimmy · Nov 10, 2010 at 09:51 PM 0
Share

BTW..to prove this I have a GUI label cursor moving around in tandem with a mesh cursor and they are pretty much close to each other.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by unimechanic · Oct 10, 2013 at 06:08 PM

Try disabling vertical synchronization to update the frames faster:

QualitySettings.vSyncCount = 0;

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

Mouse Input Lag 3 Answers

How to lock cursor in WebGL 1 Answer

How to constrain cursor to surface? 2 Answers

Mouse Cursor Problem 2 Answers

Cursor appears dark in game 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges