Search Unity

Question Best performance for many Visual Effect prefabs?

Discussion in 'General Graphics' started by Acer85, Feb 16, 2023.

  1. Acer85

    Acer85

    Joined:
    Mar 10, 2019
    Posts:
    30
    Hi,

    I have been trying to figure out what's the best way to do with many Visual Effect prefabs in the scene.
    I have a scean with around 200 Visual Effect Prefabs and did 3 tests:

    1. Just hit play and had around 8 FPS! :)

    2. I put the Visual Effect in a LOD group, then I got around 68 FPS

    3. I made a small Collider(IsTrigger) on each Visual Effect with a Rigidbody(IsKinematic) and create a simpel mesh cone in front of the camera with a Mesh Collider(IsTrigger). I also created a simpel script that enable/disable the Vissual Effect Component when the camera mesh is in range. With this I got around 118 FPS.

    Is there a better way to do it?

    I use HDRP 10 with unity 2020.
     
    Last edited: Feb 16, 2023