Page 1 of 1

ios optimization

PostPosted: Sat Aug 11, 2018 4:33 am
by 3d artist1987
Hey,

How to optimize ReflectRefractSoapBubble shader for ios (iPhone X).
Its working good but its drop fps.

Thanks.

Re: ios optimization

PostPosted: Mon Aug 13, 2018 9:58 am
by Amplify_Borba
Hey there!

You can try setting the Precision parameter to Half, in the Output Node's Parameters, as per the screenshot below:

Image

Additionally, the Local Vertex Offset can also be simplified or simply removed, if you don't need the vertex manipulation operations, and you can also lower the textures' resolution.

If possible, could you also share additional details regarding your performance tests, such as how does the scene perform without the Bubble shader and how many objects are using it?

Re: ios optimization

PostPosted: Tue Aug 14, 2018 7:23 am
by 3d artist1987
Hey,

Thanks for the reply.

I have 20 to 30 models which have bubble shader in arkit. Can I add LOD like feature which available for objects?
So When object far away from its look simple & in closer view it looks good.

How to make a single pass shader for better perfomance.

Re: ios optimization

PostPosted: Wed Aug 15, 2018 10:30 am
by Ricardo Teixeira
dev19872014 wrote:Hey,

Thanks for the reply.

I have 20 to 30 models which have bubble shader in arkit. Can I add LOD like feature which available for objects?
So When object far away from its look simple & in closer view it looks good.

How to make a single pass shader for better perfomance.


Hello,

I recommend creating a version without deformation or the grab screen effect, consider using a simple cubemap(be sure to check the sample included). You can take advantage of Unity LOD Groups to display the lower detail version at a certain distance.

We do plan to add support for shader LODs at a later stage.

I believe you're already using a single-pass shader but you can always try the Unlit or Custom Lighting mode.

Thanks!

Re: ios optimization

PostPosted: Thu Aug 16, 2018 6:49 am
by 3d artist1987
Thanks for support.

Re: ios optimization

PostPosted: Fri Aug 17, 2018 3:26 pm
by Ricardo Teixeira
dev19872014 wrote:Thanks for support.


No problem!