-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent empty buffers from being created for debug data
We currently create a a lot of empty buffers for debug data, which end up being unused in most cases (In a crowded label areas this can easily reach ~1000 empty vertex buffer handles after panning for a few seconds) For one map load on chrome, the observed time taken for the creation of these empty buffers: In symbol_bucket.js SymbolBucket.constructor, creation of object textCollisionBox, iconCollisionBox, textCollisionCircle, iconCollisionCircle 2.8Ghz i7 (macbook 2019) Average: 27.14285771932681 us Total: 1330.0000282470137 us 2.4Ghz i5 (macbook 2011) Average: 140.6338028093006 us Total: 9984.999999460342 us Galaxy s6 (smaller viewport) Average: 195.83333333865008 us Total: 4700.000000127602 us In symbol_bucket.js SymbolBucket.upload, upload for textCollisionBox, iconCollisionBox, textCollisionCircle, iconCollisionCircle 2.8Ghz i7 (macbook 2019) Average: 78.65079290543993 us Total: 4954.999953042716 us 2.4Ghz i5 (macbook 2011) Average: 171.74604175009377 us Total: 10819.999999625097 us Galaxy s6 (smaller viewport) Average: 191.66666666471124 us Total: 4599.99999995307 us
- Loading branch information
1 parent
8cd474e
commit f354b71
Showing
1 changed file
with
39 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters