Skip to content

Commit

Permalink
Don't remove and readd the actor when rebuilding webgl points.
Browse files Browse the repository at this point in the history
Also, don't rerender as part of build; other actions rerender when
appropriate, so this is wasted time.
  • Loading branch information
manthey committed Apr 11, 2019
1 parent 0de397f commit 284e6ab
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/webgl/pointFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,15 +456,10 @@ var webgl_pointFeature = function (arg) {
* @returns {this}
*/
this._build = function () {

if (m_actor) {
m_this.renderer().contextRenderer().removeActor(m_actor);
}

createGLPoints();

m_this.renderer().contextRenderer().addActor(m_actor);
m_this.renderer().contextRenderer().render();
if (!m_this.renderer().contextRenderer().hasActor(m_actor)) {
m_this.renderer().contextRenderer().addActor(m_actor);
}
m_this.buildTime().modified();
return m_this;
};
Expand Down

0 comments on commit 284e6ab

Please sign in to comment.