Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 scanzy · Dec 28, 2015 at 11:38 AM · androidshadersunity5performancelag

Game running faster on older device (Android)

My game (Unity 5) is running very well on a Samsung S2 (Android 4.2), while it lags on Samsung S5 and S6 (Android 5). I'm confused about this because these newer devices have more RAM and better graphics.

This was not happening with unity 4, so I figured out that was something wrong with the standard shader introduced with Unity 5, but the game has almost the same performance using Legacy Shaders.

Any ideas?

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
4
Best Answer

Answer by Graphics_Dev · Dec 31, 2015 at 09:36 AM

@scanzy Most shaders (probably all built-in shaders) have a fallback at the end of the shader code. This says that if the hardware doesn't support the main shader to just use the VertexLit (or other simple) shader. Also, if multiple subshaders are used, the device will use the first one it comes to that the device can support. For example:

SubShader{ A bunch of super complex stuff...}

SubShader{A very simple shader...}

Fallback "To an even simpler shader"

Most likely, your S5 and S6 can support the more complex stuff, while your S2 is running a very basic shader. This translates to a performance drop on the higher-end devices, but also better appearance (hopefully) because of the more complex shader.

To boost performance on your S5 and 6, try using the legacy vertex lit shader as this is likely what the S2 is falling back on. Another (probably better) solution would be to use the better shader but optimize in other ways:

(Go to Edit > Project Settings > Quality to see these settings)

(These are pretty much in order of importance)

  1. Turn off V Sync Count

  2. Disable Anti Aliasing

  3. Switch Shadows to Hard Shadows Only

  4. Drop Shadow Resolution to low and then decrease Shadow Distance to regain quality

  5. Set Blend Weights to 2 Bones

  6. Decrease Pixel Light Count

  7. Disable Anisotropic Textures

  8. Decrease Texture Quality

Let me know if this helps ;)

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
-1

Answer by rajan4uto · Dec 31, 2015 at 06:28 AM

I am also not sure but as i think unity reduce the quality and improve the performance according to device configuration, you can configure it from quality section(edit-->project setting--> quality) you can see something like given image, you can enhance your performance from there by uncheck some qualities.alt text


capture.png (14.4 kB)
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 Graphics_Dev · Dec 31, 2015 at 02:05 PM 1
Share

Because the issue is with 3 Android devices, it is unlikely the settings there will cause the stated problem. The Android column (the fourth column in your screenshot) can't be split up for different Android devices as far as I know: all Android devices will then use the same quality settings. However, you can change settings, that would change based on device or user input, with some scripting, but that is a deliberate move and probably not the case here.

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

50 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 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 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

Low FPS in very simple Android game 1 Answer

FPS lags on Android Device with tk2d 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