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 /
This question was closed Oct 11, 2015 at 02:32 PM by Statement for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by SteeBono · Oct 07, 2015 at 01:20 AM · iosfreezeunity 4.6il2cpp64bit

iOS 64 Bit - game freezes for some seconds?

I have developed a Game for Android and iOS with Unity 4.6.8, the name of game is 'CilyCube'.

CilyCube on Unity Editor work well, CilyCube for Android and for iOS 32Bit (ex. iPhone 4s) work well, but for iOS 64Bit (ex. iPhone 5s) it freezes for some second (3/5 seconds) and then returns to work without problems. Obviously after a few seconds it still freezes and so on.

The game freezes almost always in a certain range of scenes. Example: divide the scene in zone A and zone B: - in zone A the game freezes once/100 - in zone B the game freezes 90/100

When the game freezes there is not exception, or other error. The scripts of the game are the same for Android and for iOS (32bit / 64bit). So I'm thinking that it is a problem that affects IL2CPP.

I do not think the problem is the graphics, or sound because otherwise it would not work properly even on iOS 32Bit. Or am I wrong? These are days that I try to understand where it comes from the problem but I can not find a solution.

I also tried to control through Profiler Unity and through Xcode debugger. I will link the screenshots I did.

Xcode CPU on freezes:

xcode

Profiler on freezes:

profiler freeze

Profiler on freezes (this happens a few times) Profiler 2

Profiler on freezes (Other freezes) Pofiler 3

Profiler on iOS 32Bit Profiler - CilyCube on iOS 32bit

Sorry for all of these images, but I wanted to be as clear as possible. I hope someone can help me, thanks in advance.

xcode-grap.png (126.8 kB)
overhead-9000.png (498.7 kB)
Comment
Add comment · Show 12
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 JoshPeterson · Oct 07, 2015 at 11:42 AM 0
Share

Can you try the same thing using the $$anonymous$$ono scripting backend? That will at least help us to narrow down the problem to an IL2CPP issue or something else.

avatar image SteeBono JoshPeterson · Oct 07, 2015 at 01:07 PM 0
Share

With same thing do you mean use xCode debugger and Profiler (take screenshot), but build everything with mono 2.x? Now I try, and let you know.

avatar image JoshPeterson SteeBono · Oct 07, 2015 at 01:08 PM 0
Share

Yes, that might help us narrow down the cause.

Show more comments
avatar image JoshPeterson · Oct 07, 2015 at 03:30 PM 0
Share

Thanks for checking on this. So it seems the issue is not IL2CPP specific then. You may want to try with $$anonymous$$etal vs. non-$$anonymous$$etal if you feel it might be graphics related. I'm a bit out of my depth there though, so I can't offer too much advice.

avatar image SteeBono JoshPeterson · Oct 07, 2015 at 03:57 PM 0
Share

I have tested $$anonymous$$etal, OpenGL 2.0 and Automatic but in all of this, there is freezes. There is a method to try to understand where it comes the freezes?

avatar image JoshPeterson SteeBono · Oct 07, 2015 at 04:50 PM 0
Share

The profiler is probably your best option here. Specifically, in the Instruments screen shot you included, I wonder what the spike are on thread 5 directly after the two freezes? I wonder if thread 1 is blocking on network or disk I/O during that time.

Show more comments
avatar image JoshPeterson · Oct 07, 2015 at 05:13 PM 0
Share

Well, figuring out what causes those peaks in the profiler is the fun part. :)

You should be able to isolate that block of time in the profiler and see what code is executing there. I suspect that the code will jump out pretty easily on thread 5, as there is nothing else going on there.

avatar image SteeBono JoshPeterson · Oct 07, 2015 at 05:50 PM 0
Share

I noticed that does not always happen peak in the thread 5 after/before freezes, maybe the one before was just a coincidence. I noticed that the network stops when game freezes. I think it is the first thread to cause the problem, because every time it happens, the thread 1 brings all values to 0 (on the graph).

I also noticed that all the game continues to process information (scripts [maybe not all] runs when the game is freezes, and also the sound, works well).

This is what happens when game freezes: CPU-Xcode

I have many threads in Xcode debug; the coroutines are marked as thread in Xcode? Because they created and destroyed after a while, but in the meantime they create other.

One last question, do you think that two threads in two different scripts in the same scene, could cause problems? I use them to control the internet connection every second. (Wishing I can only use one)

schermata-2015-10-07-alle-194203.png (146.0 kB)
avatar image JoshPeterson SteeBono · Oct 08, 2015 at 11:14 AM 0
Share

So coroutines are not un on different threads. They all execute on the main thread, the same as other script code. In general, two threads on two different scripts in the same scene are not a problem. However, in this specific case something might be going on between them to cause the problem, so I would certainly have a look at them.

Show more comments

0 Replies

  • Sort: 

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

Can I change the placement path of "Data" folder? 0 Answers

Xcode - Mach-O Linker Error after upgrade to Unity 2019.4 (LTS) 0 Answers

IL2CPP app freezing on iOS 9.1/9.2 (Unity 4.6.9p2, 4.7.0) 2 Answers

Ios Build freezes when i click a button to switch Scenes 1 Answer

iOS SOAP null returned problem from unity 4.6.9p4 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