Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • 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 /
  • Help Room /
avatar image
3
Question by RoboticWater · Dec 18, 2021 at 12:40 AM · inputasset3rd person controllerstutter

Unity input stutter with new Input System and 3rd Person Starter Asset

I'm using the 3rd person starter asset with the new Input System and after adding a new InputAction on the player so I could handle item interactions, the camera movement in playmode became unbearably choppy (think, like 2 fps); however the problem isn't framerate. I have 200+ fps and everything in the scene moves smoothly except for the camera. Even testing the camera with a simple rotate 5 degrees/second script runs smoothly. The problem seems to be the input system being choppy. This choppiness persists into the build, so it has to be some static asset, not just editor problems.

I tried removing the code that preceded the behavior, but the choppiness persisted.

I then created a new project to test out slowly adding features until something broke, but in the process of doing so, that fixed the stuttering on the main project (I did a lot of things here so IDK what exactly fixed it). I was even able to add the InputActions back in with no problems. But then I modified the ThirdPersonController (I added a boolean to control whether it should move or not; unrelated to camera movement) and the problem came back.

Anyway, if anyone has an a known method for fixing this problem, it would be appreciated.

EDIT:

I have determined that this is a problem exclusively with the mouse input not gamepad input, so this is definitely a problem with the input system, not anything higher level.

Comment
Add comment · Show 1
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 DetziStudios · Jan 01 at 07:56 PM 0
Share

I am also having this issue! A lot of people said it is fixed with changing it to Dynamic update but that has not resolved the issue for me

2 Replies

· Add your reply
  • Sort: 
avatar image
16
Best Answer

Answer by johncrockett15 · Feb 03 at 05:46 PM

Project Settings > Input System Package > Update Mode; Make sure it's set to "Process Events in Dynamic Update."

You're very much correct that it's not a frame rate issue. What's happening is that the 3rd Person Starter Asset uses the Mouse Delta action, and If it's set to fixed update, the input state on the mouse delta action will frequently return "canceled" during continuous movement (as of newer versions of LTS unity), causing the delta to return 0, causing the illusion of "stuttering."

Comment
Add comment · Show 2 · 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
avatar image shadersguy · Mar 06 at 10:08 PM 1
Share

that fixed it for me, thanks

avatar image Marokh · May 10 at 05:09 PM 1
Share

Oh my god. thank you. This problem was bothering me since months and I looked through all the code and stuff and was going insane. This was the exact problem. THANK YOU

avatar image
1

Answer by JoernSchoenyan · Jan 03 at 08:53 AM

I'm having this problem, too!

Comment
Add comment · Show 2 · 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
avatar image JoernSchoenyan · Jan 03 at 07:35 PM 6
Share

Found a possible solution: in the settings of the Input System Package, set Update mode to "Process Events in Dynamic update" instead of fixed update.

avatar image Deadman3RIP · Apr 20 at 10:13 AM 0
Share

Johncrockett15, YOU ARE AMAZING!!! Thank you so much. I had this same issue for two days and I wanted to make sure I logged in to post this comment to let everyone know that this solved the issue. So many forums had many other suggestions, but this by far fixed everything.

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.

Follow this Question

Answers Answers and Comments

215 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Is there a way to update InputSystem by Fixed Time without stuttering in 2020.3.33f1 or higher? 0 Answers

IFC import 6 Answers

Input Inconsistency in 3D Platformer 0 Answers

Mouse movement disables Vsync (leading to very bad stuttering) 0 Answers

[InputManager] Bind Negative Button and Positive Button to Touch Input 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