Search Unity

Bug LIT CUBE - High number of triangles and vertices

Discussion in 'Visual Effect Graph' started by argibaltzi, Apr 4, 2021.

  1. argibaltzi

    argibaltzi

    Joined:
    Nov 13, 2014
    Posts:
    220
    Hello
    I am doing some test rendering for voxels and the VFX graph outputs 10 times higher the number of triangles and vertices compared to a normal mesh rendering approach.

    For 2749 cubes drawn with mesh renderer i get 32988 triangles

    but with VFX for 2749 lit cubes i get around 297k triangles

    This is from the stats window in game view.

    Anyone know if i am doing something wrong or is this some problem with VFX?
     
  2. JulienF_Unity

    JulienF_Unity

    Unity Technologies

    Joined:
    Dec 17, 2015
    Posts:
    326
    Hello. Probably your capacity is set way too high.You can either:
    • Set the capacity to the actual max number (if known)
    • Enable indirect draw in your output (in the output inspector) if your number of alive particles can be way lower than your capacity count.
     
    argibaltzi likes this.