Search Unity

Official Fill Tessellation in C# Job in Sprite Shape 5.1.0

Discussion in '2D' started by rustum, Nov 30, 2020.

  1. rustum

    rustum

    Unity Technologies

    Joined:
    Feb 14, 2015
    Posts:
    190
    In Sprite Shape version 5.1.0, there is now an additional option to have the tessellation of the fill geometry done in a C# Job providing improved performance.

    The geometry of a Sprite Shape is made up of an outer edge and a fill. The geometry of the edge and fill are generated in different ways by default. The edge geometry has always been generated in a C# Job which provides performance benefits and avoids potential performance loss from garbage collection. Now the generation of the fill shape can take advantage of the same benefits.

    This method also gains additional performance if the Burst package is installed in the same Project.

    Read more about this option in the documentation here:
    https://docs.unity3d.com/Packages/com.unity.2d.spriteshape@5.1/manual/FillTessellation.html
     
    NotaNaN likes this.