Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
avatar image
0
Question by THEAK472009 · Nov 16, 2015 at 06:02 AM · transform.positionjitterlaggyjittering

Why incrementing transform.position causes jitter on iOS

Hello, I am having some problems with a simple script which causes jitter on the sprite. All the script does is public float speed; void Update () { var pos = transform.position;pos.y += speed * Time.deltaTime;transform.position = pos; } This code runs fine in Editor, or standalone builds. But when I try to run it on my iOS device, you can see some jittering. The scene has 3 gameobjects with the above script and there is no rigidbody physics. Its just three objects falling without any physics. Edit: The FPS on iPhone is a constant 30 which makes it more weird

Any idea why it causes jittering?

Thanks

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by FlashX · Nov 16, 2015 at 06:08 AM

have you tried using int rather than float? Just wondering if maybe it has something to do with the numbers after the floats decimal point? Of course this will make your game run strange but it might help you narrow down the issue?

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 THEAK472009 · Nov 16, 2015 at 06:49 AM 0
Share

tried using int. still same issue. I am pretty sure it has something to do with dt but I have tried LateUpdate with smoothDeltaTime deltaTime and the same with Update. It runs with some jittering when using Update/LateUpdate and horribly with FixedUpdate which is obvious

avatar image FlashX · Nov 16, 2015 at 07:45 AM 0
Share

Just tested your code and there doesnt seem to be any issues with both update and lateUpdate, are you sure there is nothing conflicting with it? Is the camera somehow attached to the object and has some sort of delayed positioning system on it causing it to appear jittery?

Try testing the code in a brand new file and see if you have the same result, if you don't then theres something else wrong in your scene

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

32 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

Related Questions

micro Jittering, stuttering... bug of unity? 2 Answers

Keep player grounded when going down hills. 1 Answer

Jittering effect when moving character and camera 2 Answers

Player movement jittery when hitting walls and using Rigidbody.MovePosition. 1 Answer

Jitter on Object with Rigidbody 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