Skip to content

Commit

Permalink
memory experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
Yatekii committed Sep 5, 2019
1 parent 60bb230 commit 703464a
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 883 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/default.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ui_font = "config/Ruda-Bold.ttf"
max_tiles = 200
max_features = 1000
tile_size = 384
msaa_samples = 1
msaa_samples = 4
selection_tags = []

[renderer.temperature]
Expand Down
Binary file added data/8_142_93.pbf
Binary file not shown.
22 changes: 22 additions & 0 deletions examples/tile_mem_test.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
use std::sync::{
Arc,
RwLock,
};

use osm::*;

fn main() {
let tile_id = TileId::new(8, 142, 93);
let data = include_bytes!("../data/8_142_93.pbf");
let feature_collection = Arc::new(RwLock::new(FeatureCollection::new(500)));

let mut tiles = vec![];
for _ in 0..60 {
let tile = Tile::from_mbvt(&tile_id, &data.to_vec(), feature_collection.clone(), vec![]);
tiles.push(tile);
}

loop {
// dbg!(tile.stats().size);
}
}
29 changes: 0 additions & 29 deletions malloc_size_of/Cargo.toml

This file was deleted.

Loading

0 comments on commit 703464a

Please sign in to comment.