Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 RoerCore · Nov 08, 2012 at 10:38 AM · smoothstutterhiccup

Stuttering every 2 seconds

First of all I know there are similar questions on this forum about this. But none of them has a working answer.

We are building a side scroller with Unity3d. Our camera is fixed and the game objects are moving on the screen from right to left. We also have three layers in our parallaxing background.

Now it seems that Unity3d (and, I also read XNA?) has issues with smoot continues animation. Our gameobjects move at a steady speed, that's why every hiccup and stotter is very visible.

Every 1.5 to 2 seconds there is a visible hiccup/stutter (framedrop?). I tried everything I could find on this folum, but I simply can't believe that this cannot be fixed!

v-Sync is off, FPS is set fixed to 60, transformations is done in Update() method, with smoothDeltaTime.

PS) To eliminate the possibility of a flaw in my scripts I created an animation in a new Scene. Even this shows a stutter if the animation is smooth and lasts longer than 2 seconds.

I have added a test project for a simple example of this. [link text][1] [1]: /storage/temp/4828-testunityproject.zip

testunityproject.zip (216.4 kB)
Comment
Add comment · Show 2
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 markpdolby · Nov 08, 2012 at 10:40 AM 0
Share

Have you tried running the profiler to see what script is causing the spike?

avatar image Seth-Bergman · Nov 08, 2012 at 10:46 AM 0
Share

the question of what could be causing performance issues in your game is very broad..

if you have Pro, you could try the profiler for clues

http://docs.unity3d.com/Documentation/$$anonymous$$anual/Profiler.html

but there is just no telling without more detailed info..

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Seth-Bergman · Nov 08, 2012 at 11:27 AM

hmm, I think maybe I'm getting the idea here.. how are you creating these animations? this sounds like a looping problem.. Possibly the result of animation curves:

http://docs.unity3d.com/Documentation/Manual/Animation.html

try changing the curves to "linear"

OR

if you are importing the anims from animation software, a slight "skip" might also be caused by using "loop frame"

http://docs.unity3d.com/Documentation/Manual/Animations.html

or maybe your anims just don't loop seamlessly..

Comment
Add comment · Show 3 · 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 RoerCore · Nov 08, 2012 at 11:59 AM 0
Share

Hi Seth,

The stuttering occurs wihtin the animation, before it's completed. So there is no loop or so.

avatar image Seth-Bergman · Nov 08, 2012 at 12:01 PM 0
Share

does it occur at the same point in the animation each time? how are you creating these animations?

avatar image RoerCore · Nov 09, 2012 at 02:11 PM 0
Share

I have added an example project with two very simple animations. In my webplayer both are stuttering. But I don't have a decent PC on my work. In the windows player the moving text is stuttering. For the box, again it's not really visible.

avatar image
0

Answer by sam32x · Nov 08, 2012 at 12:03 PM

do you have any moving objects with mesh colliders? even a 20k tri model with a mesh collider completely kills my computer.

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.

Follow this Question

Answers Answers and Comments

12 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

Related Questions

Inconsistent jitter in iOS 1 Answer

How to use real vsync in Unity 3.5? 1 Answer

Stutter / Glitchy running character 1 Answer

Smoother camera in First Person Controller Prefab? 1 Answer

Can anyone maintain smooth 60fps on Android (2D) ? 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