mod shared {
pub mod example_builder;
}
#[cfg(feature = "ryot_tiled")]
fn main() {
use crate::shared::example_builder::ExampleBuilder;
use bevy::diagnostic::*;
use ryot_core::prelude::Flags;
use ryot_tiled::prelude::TilePosition;
ExampleBuilder::<TilePosition, Flags>::default()
.with_grid_size(100_000)
.with_n_entities(1_000_000)
.with_n_obstacles(1_000_000)
.with_max_distance(25)
.with_navigable(Flags::default().with_walkable(false))
.minimum_app()
.add_plugins((
FrameTimeDiagnosticsPlugin,
EntityCountDiagnosticsPlugin,
SystemInformationDiagnosticsPlugin,
LogDiagnosticsPlugin::default(),
))
.run();
}
#[cfg(not(feature = "ryot_tiled"))]
fn main() {
eprintln!(
"\x1b[93m[WARNING]\x1b[0m Please run `cargo run --example stress_test --features ryot_tiled`"
);
}