tangrams / tangram

WebGL map rendering engine for creative cartography
https://tangram.city
MIT License
2.22k stars 290 forks source link

Optimize attribute packing to lower GPU memory usage #690

Closed bcamper closed 5 years ago

bcamper commented 5 years ago

Improve GPU memory usage for polygons and lines styles with some vertex attribute VBO re-arrangement.

Reviewing Bubble Wrap and the Tangram demo style at a variety of zooms and locations, these changes typically reduce geometry/GPU memory usage by 15-17%.