top of page

Brute Force - Sand Shader Documentation

10. Performance Tips

Tessellation Factor

Untitled-1.jpg

Probably the biggest performance factor of the sand shader is the tessellation factor.

You should keep the Tessellation Rock to 1 (which is equal to no tessellation)

For PC/Linux I recommend setting Tessellation Sand between 20 and 50 and for mobile/VR/AR you should stay below 20.

The performance hit is relative to the view distance between the sand and the camera.

Material Pragmas

Untitled-1.jpg

Check or uncheck the features you don't need in the material, if you don't need Interactive effect you should disable "Use RT".

Disable Shadow Casting

Untitled-1.jpg

You might not need the shadow casting feature of the mesh renderer in which case this could save you a good performance chunk. This is especially true for terrains which have a Double shadow casting enabled by default!

Decrease Render Textures Size

aaaab.PNG

If you notice some fps drops when using the RT effects, then you might consider reducing the Render Texture size, by default the size value of the main RT is 4096 but you can scale it down to 2048 or even 1024 if you don't need high precision effects. The Additional RT is set to 1024 by default and is reasonably small enough:

aaaab.PNG

Keep in mind that decreasing the RT size will also reduce effects definition, so you might want to also scale down the main RTCam Size value: 

aaaab.PNG
bottom of page