Skip to content

Commit

Permalink
perf(track): reduce webgl memory usage (#1057)
Browse files Browse the repository at this point in the history
* perf: memory

* fix: add back type
  • Loading branch information
etowahadams committed May 6, 2024
1 parent f0ec117 commit 80ed16e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tracks/gosling-track/gosling-track.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ const factory: PluginTrackFactory<Tile, GoslingTrackOptions> = (HGC, context, op
this.pBackground.clear();
this.pBackground.removeChildren();
this.pBorder.clear();
this.pBorder.removeChildren();
const children = this.pBorder.removeChildren();
children.forEach(c => c.destroy());
this.displayedLegends = [];

// Because a single tile contains one track or multiple tracks overlaid, we draw marks and embellishments
Expand Down

0 comments on commit 80ed16e

Please sign in to comment.