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 RainnFai · Jun 06, 2014 at 10:59 PM · shadersshaderlabprofiling

Profiling shaders (rough shader complexity estimation)

Hello there, is there a way to profile shaderlab's shaders? I'm not looking for anything specific or accurate, I would like to have a generic idea of the complexity of a shader. What I would like to achieve is something similar to the shader complexity in the unreal engine. Here is a link: https://docs.unrealengine.com/latest/INT/Engine/UI/LevelEditor/Viewports/ViewModes/index.html#shadercomplexity

Do you have any suggestions to get a similar result? Thank you!

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 RainnFai · Jun 09, 2014 at 06:11 PM 0
Share

$$anonymous$$aybe using the unity profiler could be useful or if you know any external tool to profile shaderlab shaders? Thank you!

3 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Chris_Dlala · Jun 09, 2014 at 09:14 PM

Hi, would instruction count be a good measurement of complexity? Here is a link to show how to get that info. Maybe you could also set up a scene with just one object/example of your shader in it and use the profiler to analyse that. I suppose you could also use PIX to profile. We're not at that stage at the moment, so this is a just a quick suggestion as to what we would try first =P Hope that helps =)

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 RainnFai · Jun 11, 2014 at 11:18 PM 0
Share

Thank you :)

avatar image Chris_Dlala · Aug 24, 2014 at 10:09 PM 0
Share

No problem. Could you mark this as your selected answer? =D

avatar image Feelnside Chris_Dlala · Aug 17, 2018 at 04:50 AM 0
Share

Thank you from 2018. You help me a lot :)

avatar image
0

Answer by weatxyz · May 02, 2017 at 07:54 AM

Hi, I released a tool similar to the one you have there in the link to Unreal. You can get it from Unity's Asset Store here. Let me know if you need a particular visualizer added and I'll see if it can be done.

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
0

Answer by tanoshimi · May 02, 2017 at 08:58 AM

The industry-standard tool for debugging shaders and graphic issues is RenderDoc. It does take a little time to learn, but it's powerful, free and integrates into Unity natively - instructions here: https://docs.unity3d.com/Manual/RenderDocIntegration.html

edit: Just found this helpful article to get you started: http://www.gamasutra.com/blogs/RubenTorres/20160722/277707/When_Unitys_Frame_Debugger_is_not_enough_RenderDoc.php

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

23 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

Related Questions

How to use AlphaTest with a CGPROGRAM 1 Answer

How do I keep an object lit when a light moves past it? 0 Answers

Local position in vertex shader? 1 Answer

Quad vertex color shader 0 Answers

shader unlit transparent + tint settings 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