Skip to content

Commit abe84c0

Browse files
committed
perf: Specify dynamic draw for polygon strokes in webgl
In a real use case this change reduced the bufferData time by 11%.
1 parent 031fc05 commit abe84c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/polygonFeature.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,8 @@ var polygonFeature = function (arg) {
469469
m_lineFeature = m_this.layer().createFeature('line', {
470470
selectionAPI: false,
471471
gcs: m_this.gcs(),
472-
visible: m_this.visible(undefined, true)
472+
visible: m_this.visible(undefined, true),
473+
dynamicDraw: true
473474
});
474475
m_this.dependentFeatures([m_lineFeature]);
475476
}

0 commit comments

Comments
 (0)