Better loading times

This commit is contained in:
Joshua Barretto 2019-08-30 17:00:08 +01:00
parent c433ef36d7
commit 1176fc4d07
2 changed files with 3 additions and 3 deletions

View File

@ -121,7 +121,7 @@ pub struct TownState {
impl TownState {
pub fn generate(center: Vec2<i32>, gen: &mut ColumnGen, rng: &mut impl Rng) -> Option<Self> {
let radius = rng.gen_range(12, 24) * 9;
let radius = rng.gen_range(18, 20) * 9;
let size = Vec2::broadcast(radius * 2 / 9 - 2);
let alt = gen.get(center).map(|sample| sample.alt).unwrap_or(0.0) as i32;
@ -155,7 +155,7 @@ impl TownState {
vol.gen_roads(rng, 30);
//vol.gen_parks(rng, 8);
vol.emplace_columns();
let houses = vol.gen_houses(rng, 60);
let houses = vol.gen_houses(rng, 50);
vol.gen_walls();
vol.resolve_modules(rng);
vol.cull_unused();

View File

@ -146,7 +146,7 @@ impl WorldSim {
fast_turb_x_nz: FastNoise::new(gen_seed()),
fast_turb_y_nz: FastNoise::new(gen_seed()),
town_gen: StructureGen2d::new(gen_seed(), 1024, 512),
town_gen: StructureGen2d::new(gen_seed(), 2048, 1024),
};
// "Base" of the chunk, to be multiplied by CONFIG.mountain_scale (multiplied value is