Skip to content

Commit

Permalink
fix too many features by increasing the limit; bad perfromance ...
Browse files Browse the repository at this point in the history
  • Loading branch information
Yatekii committed Aug 21, 2019
1 parent a4a1721 commit a6a98cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion config/default.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ vertex_shader = "config/shader.vert"
fragment_shader = "config/shader.frag"
css = "config/style.css"
max_tiles = 200
max_features = 1001
max_features = 10001
tile_size = 384
msaa_samples = 1
1 change: 0 additions & 1 deletion src/drawing/feature_collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ impl FeatureCollection {
}

pub fn add_feature(&mut self, mut feature: Feature) -> u32 {
dbg!(self.features.len());
assert!(self.features.len() < self.n_features_max as usize);
feature.id = self.features.len() as u32;
self.features.push(feature);
Expand Down

0 comments on commit a6a98cb

Please sign in to comment.