mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-12 09:59:05 +02:00
minedmap/tile_renderer: async region cache
Prepare for sharing the region cache between multiple threads by making lookup/load async.
This commit is contained in:
parent
dcc9e6e794
commit
b5980b82af
4 changed files with 165 additions and 39 deletions
|
@ -43,8 +43,12 @@ fn main() -> Result<()> {
|
|||
|
||||
setup_threads(config.num_threads)?;
|
||||
|
||||
let rt = tokio::runtime::Builder::new_current_thread()
|
||||
.build()
|
||||
.unwrap();
|
||||
|
||||
let regions = RegionProcessor::new(&config).run()?;
|
||||
TileRenderer::new(&config).run(®ions)?;
|
||||
TileRenderer::new(&config, &rt).run(®ions)?;
|
||||
let tiles = TileMipmapper::new(&config).run(®ions)?;
|
||||
MetadataWriter::new(&config).run(tiles)?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue