Hello!
I was playing with Custom node inside mat. editor and found this weird behaviour when made some loops.
Just for a test, I’ve made 100 000 000 for(){} loops to see, how this is going to effect performance. And the strange thing that fps dropped significantly even if I do not connect Custom node to material input.
With connected node:
http://s1.uploadpics.ru/images/WJUoUG1qzZ.png
With dissconnected node:
http://s1.uploadpics.ru/images/Z1JUqzJcM-.png
Without the node at all:
http://s1.uploadpics.ru/images/-yjZZQJcfZ.png
I know, that Custom node does behave differently, but I think that it should implement inside a shader as a function and not calling if not used. To be honest I’m not sure, why this implements inside shader even if user do not connect it at all.
So… Is this a bug, or something? Because, for example, I need to use it with if(){} statement… And is condition is false, than loop should not be executed. Loop does not execute, but I still get some performance issues.