Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice
  2. Welcome to the Unity Forums! Please take the time to read our Code of Conduct here to familiarize yourself with the rules and how to post constructively.

Help Wanted Performance for a lot of foliage? --- Animator or Shader ?

Discussion in 'Animation' started by CrowaL, May 12, 2021.

  1. CrowaL

    CrowaL

    Joined:
    Jan 25, 2016
    Posts:
    489
    Hi @JamesB @Mecanim-Dev

    I have a question. I have a field of grass that I want to animate. In your opinion\experience, which is more performant?

    Should I use an animator controller that all the grass share? Or create a shader graph, shader, for the grass?

    Thanks!
     
    Last edited: May 12, 2021
  2. marcb152

    marcb152

    Joined:
    Jun 20, 2019
    Posts:
    21
    Hi!
    Animator controllers are made for humanoid/animals kind of meshes, with complex animations, blending between states, and so on.
    This means that they will perform poorly for a grass field, so shaders are definitely the way to go for animating this type of foliage.
    Last tip: please avoid pinging people at the beginning of a thread, they don't necessarily want to be mentionned everywhere.
    Anyway, I hope this helps :)
     
unityunity