From 14d91f6ea23789b5f0ef3402448a1cc12a013acb Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Tue, 9 Aug 2022 08:44:53 +0200 Subject: readme --- Cargo.lock | 30 +++++++++++++++--------------- README.md | 11 +++++++++++ launch_2p.sh | 4 ++-- 3 files changed, 28 insertions(+), 17 deletions(-) create mode 100644 README.md diff --git a/Cargo.lock b/Cargo.lock index 10c2ed8..25490ee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1970,21 +1970,6 @@ dependencies = [ "web-sys", ] -[[package]] -name = "inv" -version = "0.1.1" -dependencies = [ - "bevy", - "bevy_ggrs", - "bevy_rapier2d", - "bincode", - "bytemuck", - "ggrs", - "serde", - "serde_json", - "structopt", -] - [[package]] name = "io-kit-sys" version = "0.2.0" @@ -3198,6 +3183,21 @@ dependencies = [ "typenum", ] +[[package]] +name = "tanks" +version = "0.1.1" +dependencies = [ + "bevy", + "bevy_ggrs", + "bevy_rapier2d", + "bincode", + "bytemuck", + "ggrs", + "serde", + "serde_json", + "structopt", +] + [[package]] name = "termcolor" version = "1.1.3" diff --git a/README.md b/README.md new file mode 100644 index 0000000..1a8e018 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +This branch is an integration attempt of bevy_rapier2d and bevy_ggrs. + +The current approach is to run rapier inside of the rollback schedule, +deserializing and serializing the RapierContext before and after each +rollback execution. + +The problem is that RapierContext is huge as it tracks the whole physics +state, which contains the static colliders. + +A possible solution is to track only the rigidbodies and the contact +graph and leave the static state. diff --git a/launch_2p.sh b/launch_2p.sh index 23901a7..edafce5 100755 --- a/launch_2p.sh +++ b/launch_2p.sh @@ -1,4 +1,4 @@ #! /usr/bin/bash -alacritty --hold -e cargo run -- --local-port=40000 --players localhost 127.0.0.1:40001 & (sleep 5 && -alacritty --hold -e cargo run -- --local-port=40001 --players 127.0.0.1:40000 localhost) & +alacritty --hold -e cargo run --release -- --local-port=40000 --players localhost 127.0.0.1:40001 & (sleep 5 && +alacritty --hold -e cargo run --release -- --local-port=40001 --players 127.0.0.1:40000 localhost) & -- cgit v1.2.3-54-g00ecf