Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Stuttering Input using the Starter Assets - Third Person Controller

Discussion in 'Input System' started by Serinx, Dec 7, 2021.

  1. Serinx

    Serinx

    Joined:
    Mar 31, 2014
    Posts:
    785
    Seems that when I move the mouse to rotate the camera it's jittery. I haven't added any code to the project.

    It worked fine initially, but after plugging in the gamepad the issue occurred.

    You can see in the middle of the video I use the gampad to rotate and it's smooth



    Anyone know what this is? Not sure if it's the input system or cinemachine.

    Unity version 2020.3.24f1
     
    PutridEx and Oliverxll like this.
  2. Serinx

    Serinx

    Joined:
    Mar 31, 2014
    Posts:
    785
    Ok I think I found the problem. This setting was set to "Fixed Update" but it seems a lot smoother with "Dynamic Update".

    Let me know if there's a better way!

    Edit: It didn't let me upload the image. I was talking about the setting:

    Project Settings -> Input System Package -> Update Mode -> "Process Events In Dynamic Update"
     
  3. Oliverxll

    Oliverxll

    Joined:
    Jan 3, 2017
    Posts:
    1
    Quite ironic Unity advocates Inputs in Update but has set this to happen in FixedUpdate. Thanks for finding out!
     
    cjackcandy likes this.
  4. Ayrnas

    Ayrnas

    Joined:
    Jul 6, 2018
    Posts:
    5
    Thank you! I've been looking everywhere for this solution and was about to abandon Cinemachine.
     
    cjackcandy likes this.
  5. Katerlad

    Katerlad

    Joined:
    Mar 26, 2015
    Posts:
    16
    This also worked for me! What is strange is that it would work in fixed update for awhile and then if I saved, exited unity and reload the project it would start stuttering with mouse movement only. wasd controls worked fine and smooth. as soon as I switched over to dynamic update it was instantly fixed.

    This happened with Starter Assets - First person controller for me.
     
    cjackcandy likes this.
  6. Haseeb_BSAA

    Haseeb_BSAA

    Joined:
    Aug 20, 2014
    Posts:
    316
    Thank you! I was thinking maybe it's my code that's causing the game to jitter, was worried but your solution worked!
     
  7. mathewajacc

    mathewajacc

    Joined:
    Feb 28, 2022
    Posts:
    1
    This worked for me! But the rotation/mouse sensitivity is unbearably slow now. It only feels normal in the player when I set my mouse DPI about 10x faster than normal. How can I edit the sensitivity in Unity?
     
  8. Krieger501

    Krieger501

    Joined:
    Sep 17, 2021
    Posts:
    1
    Maybe this will help you with the sensitivity problem.
     
  9. unity_67A45C45309B713D0D69

    unity_67A45C45309B713D0D69

    Joined:
    Jan 29, 2022
    Posts:
    3
    This worked for me too! Thank you!
     
  10. CuriousHamst3r

    CuriousHamst3r

    Joined:
    Feb 8, 2022
    Posts:
    2
    Thanks so much for this! It helped remove the stutter!
     
  11. Tiny-Ninja

    Tiny-Ninja

    Joined:
    Oct 1, 2018
    Posts:
    3
    THANK YOU SO MUCH @Serinx I WANT TO KISS YOU!!!