Search Unity

Inexplicable lag when moving the mouse

Discussion in 'Editor & General Support' started by Phoenix116, Mar 7, 2019.

  1. Phoenix116

    Phoenix116

    Joined:
    Jun 30, 2016
    Posts:
    39
    I'm making a 2D game where you have to dodge objects with the finger, everything works fine, the only problem is that when I move the mouse more or less quickly in the editor the game lags for some reason, even dissabling the raycast I'm using to detect collisions or deactivating the entire game controller that handles the main script
    upload_2019-3-7_9-37-29.png
    In the left part you can see how the game runs normally, in the right one you can see what happens when I move the mouse
     

    Attached Files:

  2. Phoenix116

    Phoenix116

    Joined:
    Jun 30, 2016
    Posts:
    39
    upload_2019-3-7_9-44-33.png
    Another image without the UI
     
  3. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,411
    Phoenix116 likes this.
  4. Phoenix116

    Phoenix116

    Joined:
    Jun 30, 2016
    Posts:
    39
    You nailed my problem, I'm using a 1000 dpi mouse, really apreciate your help ^^
     
  5. alexennerfelt

    alexennerfelt

    Joined:
    Jan 7, 2017
    Posts:
    15
    I had this issue, thank you for this thread! Solved it for me. Annoying that it's listed in the profiler lists this as "others"