|
|
@@ -4,7 +4,8 @@ use std::time::{Duration, Instant}; |
|
|
|
use async_ecs::{ |
|
|
|
asparit::{Driver, ParallelIterator}, |
|
|
|
dispatcher::Error as DispatcherError, |
|
|
|
AsyncSystem, Dispatcher, Join, ParJoin, ReadStorage, System, VecStorage, World, WriteStorage, |
|
|
|
AsyncSystem, Builder as EntityBuilder, Dispatcher, Join, ParJoin, ReadStorage, System, |
|
|
|
VecStorage, World, WriteStorage, |
|
|
|
}; |
|
|
|
use async_ecs_derive::Component; |
|
|
|
use futures::future::{BoxFuture, FutureExt}; |
|
|
@@ -61,6 +62,7 @@ async fn run() -> Result<(), Error> { |
|
|
|
let start = Instant::now(); |
|
|
|
|
|
|
|
dispatcher.dispatch(&world).await?; |
|
|
|
world.maintain().await; |
|
|
|
|
|
|
|
let end = Instant::now(); |
|
|
|
|
|
|
|