• 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
Question by ColeBKray · May 10, 2012 at 08:30 PM · performanceplaytesting

How can I improve performance?

I created a not so complex game with unity (compared to the ones i've seen), for Ios. When I test it and press play, it is really slow and lags, not only on the ipad, but on my mac. Guess it'll be much faster when I build the app, but it'll be a headache to build it and compile it every time a change a variable(I say this because speed of some objects, and timing mattter a lot in the game that I've created, so they need fine tuning). My qquestion is how can I improve the performance of playing the game inside unity? It would be great a help for me.

Comment

People who like this

0 Show 0
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

3 Replies

  • Sort: 
avatar image

Answer by numberkruncher · May 10, 2012 at 11:59 PM

I have found that games run slow in the Unity editor when there are multiple scene views. Ensure that you tick "Run Maximized" before running because this does improve performance massively (in editor).

As for poor performance on iOS I have pretty much always found the root cause to be shaders (in my game projects). Always make sure that you are using the mobile friendly equivalents of the built-in shaders, and optimize homemade ones!

Another major performance issue on iOS is draw calls. Run the game in the editor and select "Statistics". Check how many draw calls there are because an excessive number here would indicate one cause for poor performance.

There are so many things that contribute to poor performance but the Unity documentation contains some excellent advice: http://unity3d.com/support/documentation/Manual/Optimizing%20Graphics%20Performance.html

Comment
BlastOffProductions

People who like this

1 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 VIPINSIRWANI · Sep 17, 2013 at 06:11 AM 0
Share

Once go Edit > Graphics simulation > select Open GL 1.0 and now once run your game may be you will get result.

avatar image

Answer by Drakestar · May 10, 2012 at 08:33 PM

Don't assume that the game will magically run faster after you build it. Start by reading this article, and come back for specific questions: http://robotduck.wordpress.com/2011/08/05/code-optimization-in-unity-part-2/

Comment

People who like this

0 Show 0 · 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

Answer by yetanotherday · May 10, 2012 at 08:58 PM

Everything counts. Shaders, vertexes, size of textures and their options. Its not just about number of stuff that appears on screen (but draw calls is very important! learn how to optimize them). Even simple things like smoothing groups, number of bones, projected thing and lights can add a lot to performance. Its just one big problem and you need to be aware of almost everything that is going on in your game... this kind of question was answered a lot of times on unity answers. Just spend some time on searching. Screenshot or more broad description of problem would help to throw some more advises.

Comment

People who like this

0 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 ColeBKray · May 11, 2012 at 06:30 AM 0
Share

I use primitves(sphere) in the scene that are built in unity, and materials built-in unity, that have no texture on them, just a single color assigned to them, that's all.

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta by June 9. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

If you're creating a Multiplatform game how do you know that system can handle it? 1 Answer

Is there any nice way to make a quick auto performance check to decide the quality of the graphics to use on the device your game is running on 0 Answers

How to do performance/load testing for WebGL games which hosted onto AWS server,How to do Load testing for WebGL games hosted onto AWS server 0 Answers

Unity Game Testing: iPad1, iPad2, or both? 2 Answers

Ads show up in editor but not during play test on iPhone 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