Skip to content

tesselate polygons instead of rendering with stencil buffer #682

@ansis

Description

@ansis

We should draw polygons by tesselating them instead of using the stencil buffer trick. Native already does this. 7b35312 is a first attempt that uses libtess.js. Rendering is faster but the tesselation is slow. The buildings layer can take up to 500ms to tesselate.

  • take a look at poly2tri.js (which only accepts simple polygons)
  • revisit tesselating polygons in the tiles

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions