From f47fff2a118292868b5c94017d39fdf212e6153c Mon Sep 17 00:00:00 2001 From: Bergmann89 Date: Thu, 26 Nov 2020 18:49:58 +0100 Subject: [PATCH] Updated submodules --- Cargo.lock | 11 +++++++++++ asparit | 2 +- async-ecs | 2 +- async-ecs-derive | 2 +- space-crush/src/main.rs | 4 +++- 5 files changed, 17 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 989db05..0917fd1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -31,6 +31,7 @@ version = "0.1.0" dependencies = [ "asparit", "async-ecs-derive", + "crossbeam-queue", "futures", "hashbrown", "hibitset", @@ -146,6 +147,16 @@ dependencies = [ "scopeguard", ] +[[package]] +name = "crossbeam-queue" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b2a58563f049aa3bae172bc4120f093b5901161c629f280a1f40ba55317d774" +dependencies = [ + "cfg-if 1.0.0", + "crossbeam-utils", +] + [[package]] name = "crossbeam-utils" version = "0.8.0" diff --git a/asparit b/asparit index 27fd692..e3d7c56 160000 --- a/asparit +++ b/asparit @@ -1 +1 @@ -Subproject commit 27fd692518d3d77a2dc7c82d0ba5b222305d305d +Subproject commit e3d7c56297232aa66e720cc0766b1c25bc11420d diff --git a/async-ecs b/async-ecs index 39fa747..4a29fa1 160000 --- a/async-ecs +++ b/async-ecs @@ -1 +1 @@ -Subproject commit 39fa7475beefd197f2d99e8b30ae4ec8c4e5ba12 +Subproject commit 4a29fa124c3dfde75949d606d014de1cd554e923 diff --git a/async-ecs-derive b/async-ecs-derive index 14f0bdd..7a33669 160000 --- a/async-ecs-derive +++ b/async-ecs-derive @@ -1 +1 @@ -Subproject commit 14f0bdde2d5e4154a9f895e3b0a42970bd2aca5e +Subproject commit 7a33669aa8f000d15e56209dcf93f81112f08a24 diff --git a/space-crush/src/main.rs b/space-crush/src/main.rs index 521669a..d052082 100644 --- a/space-crush/src/main.rs +++ b/space-crush/src/main.rs @@ -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();