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 fidelsoto · Mar 11, 2015 at 09:26 AM · androidunity 5performanceslowbad

Bad performance on certain android devices

[UNITY 5] I created a new scene (on a new project) with a canvas and an animated UI image (white box that slides from left to right). This scene (this simple animation) runs awful on this particular device: http://www.gsmarena.com/alcatel_one_touch_idol-5230.php I tested it on 2 of them. Other devices work fine (tested on 5 different ones). The same scene runs fine on Unity 4. I can't figure out what changed between Unity 4 and 5 that would cause such a basic scene to run deplorably on this particular device. Does anybody have any idea? Its like the FPS is capped to something very low and I cant figure out why. Adding an empty script to the image with Application.targetFrameRate = 60; on both Start() and Update() did not work either.

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 · Mar 11, 2015 at 01:28 PM 0
Share

Have you tried profiling to find out what's taking the time...?

http://docs.unity3d.com/$$anonymous$$anual/Profiler.html http://docs.unity3d.com/$$anonymous$$anual/$$anonymous$$obileProfiling.html

avatar image fidelsoto · Mar 11, 2015 at 02:17 PM 0
Share

I did now. It seems like rendering a camera with a skybox is bugged in Unity 5 (or something changed), skyboxes now kill performance. Profiling the device: alt text

Profiling a different, more powerful device: alt text

Everything is ok if I set the camera's clear flag to solid (60FPS). With a skybox apparently FPS gets capped to 15 on android devices.

bug2.png (199.8 kB)
bugshot.png (227.8 kB)
avatar image meat5000 ♦ · Mar 11, 2015 at 03:37 PM 0
Share

Try disabling DX11, as Android doesn't support it anyway.

One answer suggests selecting the "Dont Sync" option of VSync.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by fidelsoto · Mar 11, 2015 at 05:33 PM

None of that worked, I fiddled with every option Unity has and I think I finally found the issue. Unity 5's skybox shader (material). I guess I was very dumb, Unity 5's new skybox shader has so many features that it kills mobile. It slipped past by me. Thanks and good luck all! (ops posted this comment as answer by mistake, though technically, this is the answer)

Comment
Add comment · Show 3 · 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 meat5000 ♦ · Mar 11, 2015 at 06:11 PM 0
Share

Its fine as an answer.

This is the procedural skybox? Did you try other options?

avatar image fidelsoto · Mar 12, 2015 at 04:45 PM 0
Share

In the end it was a bunch of different things. I'm done with the optimization process now and I can't be happier of how it turned out, it's running beautifully fast. I learned how to use the profiler properly. Thank you very much for your help! :D

avatar image neutt22ads · Oct 22, 2015 at 10:32 AM 0
Share

It didn't work for me :/

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Android performance hit on changing Button.Interactable 1 Answer

Smooth movement of simple GameObject on Android 1 Answer

i have a fps sniper game and it runs slow on the tablet 1 Answer

iPhone 4 game lags 2 Answers

Bad Performance on Mobile. 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