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 /
  • Help Room /
avatar image
0
Question by VoxelMatt · Aug 25, 2016 at 06:41 AM · updaterender

Getting Terrible Frame-Freezes... but game is still being Update()'d

Hey Unity Devs, I'm hoping that someone can help me shed some light on a crazy bug that some of our Android players are reporting.

TL;DR: Bad 1sec+ frame freezes, but game keeps updating. Is this a Unity Rendering Bug???

The long version:

We get 1+ second frame freezes whenever coins are added to the players total. BUT the game keeps updating in the background. Here's a video a user sent us showing the HUGE lag spikes:

https://www.youtube.com/watch?v=nyQ34xLMtWA (After the lag spike - the trains have continued moving, making the game unplayable)

After spending several days trying everythign I can to fix the problem (I can't actually reproduce it on any device we have access to). I wrote some code that would make the problem WORSE... so here's what it looks like when we actually have bad code that sticks on a frame.

https://youtu.be/txdFwR6_CHU (Notice that the trains don't continue moving behind the lag.)

This is currently happening to maybe 1% of our players, and I can't (yet) see any common ground on device type, or OS version.

What can cause rendering to stop while we still get calls to 'Update()' ???

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 VoxelMatt · Sep 01, 2016 at 07:40 AM

More Information from one of our players. I've highlighted the important bits.

"I tried the Open GL and the first two plays Mons and Bruges were perfect. I had two perfect balloon rounds which I think is a first. One in Mons and then one in Bruges before the (video) freezing returned on my third balloon round when I played Amsterdam."

"The game continues I can hear it and even control the trains. Only the video is frozen for a short, random amount of time. "

We sent them 2 builds, one that disabled multi-threaded rendering. No change. And one that used OpenGLES3.0 (previously we just used gles2.0). In the OpenGLES3 build the problem seemed to go away for a little while. But then came back.

More videos showing the issue: https://youtu.be/g_HaY4g7M-s?t=37 https://youtu.be/olYdnuBinp4

I can't recreate the problem on any devices that we have access to. At this point I think it's maybe the Unity UI system?

Comment
Add comment · Show 1 · 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 doublemax · Sep 01, 2016 at 02:55 PM 0
Share

I'm a Unity beginner, but am a experienced programmer in general. I'll just share some thoughts, they probably won't help :)

Are you sure that Update() is still called? Or do you do much stuff in FixedUpdate()?

I would double-check all Coroutines for potential locks.

Is there any network traffic involved? Can it be that the problem is related to bad connectivity?

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

66 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

Related Questions

Low Fps on URP on Android 0 Answers

What is the difference between Update() , LateUpdate() , FixedUpdate(), and when i should use them 3 Answers

get image on url, replace and reload in runtime 1 Answer

Script execution order of child and parent classes - Parent then children??? 1 Answer

Multiple small update calls vs one large update call? 1 Answer


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