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 jamiecox · Aug 18, 2012 at 06:57 AM · mobileiphoneperformancelag

Performance lag every 1 second on iphone 4s

I'm currently developing a 3d runner for Android and iPhone and just recently got my iphone license. I've been testing the game so far on my Android device and it runs fine, however now testing on iPhone for the first time the game seems to lag roughly every 1 second at a constant interval. It's only a fraction of a second but its really noticeable, and this is an iPhone 4s so really shouldn't be having any processing difficulties. After the game has been played for a while, the lag stops and the game runs seems to run fine from then on.

  • None of my scripts only run once every second, or any consistant interval that could be triggering this

  • I have multiple animations on the character, and the scene is decorated, however all models are very low poly, and there is always less than ~1500 polys on screen at a time

  • All texture resolutions are 256x256 or less

  • The level is loaded in small intervals (every 5 seconds), so it's not required to process the entire 3d world at a time

Any ideas as to what it could be or how i could track down what is causing it?

EDIT: keep in mind after running through the scene a few times it will not lag again going through the exact same scene

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 Azuri · Aug 20, 2012 at 01:37 AM 1
Share

Did you test it with the profiler on the iPhone?

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Namal · Sep 20, 2012 at 07:44 AM

Hi,

We are facing the same issue : game lags like every second on iPhone 4S, but not on iPod4 or IPhone 3GS.

Weird thing (answering your question Azuri) is that this lag disappears when using Unity Profiler, you can actually switch the lag on and off playing with the built-in profiler.

Any advice would be awesome, Best, Philippe

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
avatar image
0

Answer by kanpot2002 · May 31, 2013 at 04:45 AM

I've faced the same problem with hours of debugging and optimising, and I think I found a solution.

In my case, I deselect Development build and everything is smooth as ice.

Hope this help you.

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

Bad Performance on Mobile. 0 Answers

Slow Startup on iOS and Android 1 Answer

Performance problems on Android (apk) 1 Answer

Unity3.4 Mobile Terrain Lag 1 Answer

iPhone and Android difference? 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