Material functions don't show stats

Unsure if this is a bug or by design, but it would certainly be helpful to be able to see stats on material functions when you are optimizing a large shader and are running out of texture samplers.

Hi Hyperloop,

There are a lot of debug tools included within the editor that may be able to help you better find the solution you’re looking for.

You can take a look at the various debug tools and selections by going to the Material Editor tab a the top Windows > Select ‘Stat’ to display a status window at the bottom of the editor. Also, you can check various stat options on the tool bar that you would like to be displayed.

In the editor viewport you can go to “Show” > Stat (at the bottom) > advanced > there are couple of shader stats you can display by checking them here.

If this doesn’t have the information you are needing please be more specific.

Thank you!

Tim

Tim, thank you for your reply. I’m familiar with the stats window, it’s very helpful. I just noticed that it doesn’t seem to be populating when I’m editing a material function (It works just dandy when I am editing a regular material).

I’m not able to launch the editor at the moment but when I get back to my machine I’ll check to be sure I’ve got the advanced view activated, maybe that’s the issue.

Hi Hyperloop,

When using the functions I can see that there isn’t a way to look the stats. I’m not sure if this is intended or not. I would imagine it is though as material functions are solely used for passing information that can be reused. The materials are compiling with all the information and it does show that the shader instructions from the function are included.

What type of functionality are you wanting out of the material functions that it’s not showing within the stats? Any clarity on this information could assist me in potentially getting an answer.

Thank you!

Tim

Tim,
Thanks for the reply. I think the use case would be that when you are stepping into a material function to edit it, you’d want to be able to see stats on it (especially if you are trying to get a good sense of where you are using your texture samplers in a complex material with several material functions).

Hi Hypeloop,

I’ve spoken with one of our developers and I am about to put in a feature request for this to be implemented in a future release. There are no specifics on when this will happen.

I do have this post bookmarked and if it is implemented in a future release I will post that information back here.

Thank you!

Tim