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 Davain · Jun 01, 2013 at 06:14 AM · shadermobileoptimizationalphablend

Transparent shader with alpha 1. Still a performance hit?

From what I could gather there is a performance issue, on non tegra mobile devices, with alpha blending (better then cutout but still an issue). Does the hit in performance happen at the moment your shader is defined as transparent and set to blend even if your alpha is 1 (in truth making the object opaque)? Does "blend One One" mode also gives a hit to performance?

Thanks!

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 electricsauce · Jun 01, 2013 at 03:17 PM

My understanding is that transparent shaders have to be rendered after all of the other shaders and then sorted by it's zbuffer depth. Since you would still be doing this sorting after everything else is rendered you would still have the performance impact of a semi-transparent shader. Use a diffuse shader if you can get away with it.

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 Davain · Jun 01, 2013 at 04:54 PM 0
Share

Thank you for the answer. This is an issue which is related to GUI. I posted the whole story here: http://forum.unity3d.com/threads/184463-$$anonymous$$obile-Non-rectangular-GUI-Geo-or-Alpha-blend Would it be better performance wise, to use a ~500 tris mesh with a regular unlit opaque shader ins$$anonymous$$d of a ~13 tris mesh with alpha blended shader, when we also take into account that it would take ~10% of the screen?

avatar image electricsauce · Jun 01, 2013 at 06:32 PM 0
Share

I'm assu$$anonymous$$g that it's for a menu that's used when the game is paused(like weapon selection in crysis). That being said, performance shouldn't be too bad with the 3d mesh version of the buttons and you have the added advantage of the look of 3d buttons, but it will be harder to get the rounded look on the edges of the buttons without making the mesh extremely high poly.

To be sure, you'll probably have to implement a test version of each on your lowest perfor$$anonymous$$g target device to see how well they run.

avatar image Davain · Jun 02, 2013 at 04:37 AM 0
Share

Yes that the conclusion we arrive to. Thanks for the help.

avatar image
2

Answer by Eric5h5 · Jun 01, 2013 at 05:30 PM

A transparent shader is always a transparent shader; what you set the alpha to is irrelevant.

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 Davain · Jun 02, 2013 at 04:36 AM 0
Share

Thank you for your help

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

Reflect Fresnel Mobile VR 0 Answers

Mobile: Diffuse Cutout shader with NormalMap. Very bad performance. 0 Answers

Mobile blur shader 0 Answers

Image Effect problem on mobile & optimization 0 Answers

Setting Material Textures at runtime for the rest of the game 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