Webgl / clarified the buffer binding/flushing logic

The Webgl points layer renderer has also been optimized accordingly,
giving out much better performance.
This commit is contained in:
Olivier Guyot
2019-04-02 21:05:28 +02:00
parent 7c1df60d06
commit b955579a9c
2 changed files with 39 additions and 16 deletions

View File

@@ -323,6 +323,9 @@ class WebGLPointsLayerRenderer extends LayerRenderer {
baseIndex + 1, baseIndex + 2, baseIndex + 3
);
});
this.helper_.flushBufferData(ARRAY_BUFFER, this.verticesBuffer_);
this.helper_.flushBufferData(ELEMENT_ARRAY_BUFFER, this.indicesBuffer_);
}
// write new data