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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by abhishakverma · Dec 13, 2013 at 06:54 PM · android

my game is running damn slowly in android device?

I have created an android game, it is working well in my system but when i taking built in android device it struck and when play it runs damn slow even its taking too much time to load.I dont know whats the problem, may be problem in my rendering procedure. my built size is only 14 mb.Please anyone help me in solving this problem.

Comment
Add comment · Show 3
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 tanoshimi · Dec 13, 2013 at 09:44 PM 0
Share

Application size is almost completely irrelevant to how fast your game runs. As @kiloblargh has already said, if you want help you need to give us a lot more relevant information on what you're trying to do: How many game objects do you have on screen? How many materials? Are you using physics? What are the quality settings? What shaders/image effects have you applied? These are some of the things that are likely to affect performance, particularly on mobile devices.

avatar image abhishakverma · Dec 14, 2013 at 03:09 PM 0
Share

I am sending you my profiler image please have a look.

profier.jpg (105.9 kB)
profier1.jpg (175.6 kB)
avatar image Kiloblargh · Dec 14, 2013 at 10:24 PM 1
Share

That many draw calls are a problem on Android, see if you can get dynamic batching working.

And now that you have the profiler on, just see what's taking up the most time and focus on improving that until it's not the thing taking the most time anymore. That "Car_AI.FixedUpdate" is a monster-the CPU shouldn't be taking up that much time, and scripts shouldn't be the heaviest thing in the game, and it looks like it's just that one script, so there is something wrong with how it was written.

Does an AI need to recalculate 30 times a second, or would once or twice a second be fine? Also, I think by putting it in FixedUpdate you are making it compete for CPU time with the physics engine. Change it to an InvokeRepeating and try different repeat rates.

Finally, the "Other" category is taking an alar$$anonymous$$g piece of the pie. Crack that open and see what is going on in there and what can be eli$$anonymous$$ated.

2 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by Kiloblargh · Dec 13, 2013 at 07:01 PM

A desktop PC has a much better graphics card than any mobile device. If you've been working on if for a while and only testing on the desktop PC, it may be that you've just made something that won't run on an Android and you're going to have to go back to the drawing board, and test constantly on the target hardware the next time.

Your question is very broad and you gave no information that would help someone diagnose your problem. At least post a screenshot. How many draw calls are you getting (click "Stats" button over the game view.) How many materials do you have in the scene? How many lights? Are you using real-time shadows? Built-in terrain with plants and trees?

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 Kiloblargh · Dec 13, 2013 at 07:22 PM 2
Share

The best thing about Unity Pro, which I still can't afford, is the profiler (the second best is probably the dark skin...) If you haven't yet used your pro trial, it's a good idea to do that when your game's almost done just so you can use the profiler. Otherwise if you have access to a $$anonymous$$ac, try building for iOS and using Xcode's profiler to see where all the milliseconds are going.

avatar image
0

Answer by Fattie · May 06, 2014 at 11:09 AM

For the record, the simple answer is "Use the profiler...". A major and amazing feature of Unity!

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

18 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

Related Questions

PrintScreen with alpha in background 0 Answers

Send an activity from C# to Java 0 Answers

ERROR: Invalid Password for key 'google play public key' 0 Answers

Terrain issue for android device... 1 Answer

BCE0019: 'cont' is not a memBCE0019: 'cont' is not a member of 'UnityEngine.Component'. ber of 'UnityEngine.Component'. 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