Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Bug Unity Shader Graph nodes not mobile optimized

Discussion in 'Shader Graph' started by DevDunk, Mar 1, 2024.

  1. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,202
    I have been diving a bit more deeply into Unity's shader graph nodes and found that many nodes do not fully switch between single and half floating point precision. Many values like 1.0 are single precision, while they could be used as half precision when that is selected in your shader graph.
    This could help with performance on mobile devices (or newer desktop GPUs since they added half fp into the new architectures again for compute).

    The issue is here, please vote on it if this is something you find important:

    https://issuetracker.unity3d.com/is...ing-point-precision-is-used-with-float-values
     
    jGate99 likes this.