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
1
Question by Halo500 · May 15, 2013 at 06:09 AM · androidperformancelag

Android Performance REALLY Laggy

  • apologize in advance for asking this question for I know it must have been asked before, but my problems don't seem to be resolved in the other posts.*

I am really close to finishing my game, so I 'build and run' it into my Google Nexus 7 tablet, for Android. The main menu, credits, and other miscellaneous things worked fine, except for the game itself.

The game is horrendously slow, to where it makes my tablet lag along with it! I optimized all the textures for the Terrain to compress for fast quality, made the project quality simple, made everything else compressed for fast quality for Android, and it seems as if my game has gotten a little better.

Especially when I touch the Dual TouchPads on the screen, it takes a LONG time to finally respond to my touch because the game is lagging so much. It makes my head hurt with ALL the problems I have had with this game so far, but that's how you learn when you are new with something.

Any help, links to tutorials, tips, and/or suggestions on what I should do to help improve my game's performance for Android would be really appreciated! :D

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 Bunny83 · May 15, 2013 at 07:34 AM 1
Share

How about telling a bit about your situation beyond "it's laggy"? How many drawcalls do you have in the scene? What texture sizes are you using? Vert / triangle count? Do you use any third-party packages like NGUI, ezGUI, 2Dtoolkit, ... What shaders do you use? $$anonymous$$aybe some with heavy fragment programs? Does your game involve physics? If so how many objects are colliding?

There's not much we can tell you since we know nothing about your project.

Feel free to **edit your question**

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Graham-Dunnett · May 15, 2013 at 10:28 AM

Use the built in profiler:

http://docs.unity3d.com/Documentation/Manual/iphone-InternalProfiler.html

This will tell you more than you ever wanted to know about the performance of your game. (If you have the Pro Android Editor, then there is an even more fantastic profiler that will tell you more than you and all your family and everyone you know ever wanted to know.)

The critical thing to work out is whether your game is slow because you are doing too much work on the CPU or the GPU is too busy rendering your scene, in which case you're "GPU bound". If you are CPU bound, then optimise your scripts. If you are GPU bound then reduce draw calls, optimise shaders or simplify the geometry.

Comment
Add comment · Show 4 · 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 Halo500 · May 15, 2013 at 02:05 PM 0
Share

Thanks for the tip!

I am using the profiler and I am pretty shocked at ALL the huge spikes I have right now... Here's an image: Walt textW

So... I compressed all my textures for android, which made it a little faster... $$anonymous$$y game's environment is a forest, with the original HUGE size of the terrain when you create it, with thousands of trees in it (all with capsule colliders), I have owls and crickets sounds looping in the background, I have background ambient music playing (each 10 $$anonymous$$utes long since the script is activating the song), I have an enemy chasing after me, I turned off wind, have fog on, have moonshine skybox on...

Any help on what I should edit/optimize to increase my performance and how?

new bitmap image.jpg (112.0 kB)
avatar image Graham-Dunnett ♦♦ · May 15, 2013 at 02:42 PM 0
Share

$$anonymous$$aybe upload a larger version of your profiler capture, so we have a chance to see the numbers and give you some advice.

avatar image Halo500 · May 16, 2013 at 02:50 AM 0
Share

Also, I have found out that when I am in an area in my game with no trees surrounding me ($$anonymous$$y map is a big forrest, with trees everywhere and occasional spots without trees) and the game runs a LOT more smoother...

Is it possible that with all the capsule colliders on thousands of trees could be the source of my game lagging behind?

I deleted a lot of background trees and it didn't do anything... $$anonymous$$aybe ins$$anonymous$$d of a small trail with no grass to follow, I should just have a wide trail in between the trees so I have enough space for the player,which might make the game lag a bit less.

avatar image Halo500 · May 16, 2013 at 05:35 AM 0
Share

Also, if the image is still too small, I upload some more with everything part zoomed in!

avatar image
0

Answer by TotalFreeze · May 15, 2013 at 10:38 AM

You can also try this site. It has great tips on increasing speed and performance: www.paladinstudios.com/2012/07/30/4-ways-to-increase-performance-of-your-unity-game/

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 Halo500 · May 15, 2013 at 01:47 PM 0
Share

Thank you for pointing out this website!

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

16 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

Related Questions

FPS lags on Android Device with tk2d 1 Answer

Low FPS in very simple Android game 1 Answer

Unity to android (game very laggy) 1 Answer

Performance problems on Android (apk) 1 Answer

Weird android performance on high-end device 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