aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock30
-rw-r--r--README.md11
-rwxr-xr-xlaunch_2p.sh4
3 files changed, 28 insertions, 17 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 10c2ed8..25490ee 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1971,21 +1971,6 @@ dependencies = [
]
[[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"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -3199,6 +3184,21 @@ dependencies = [
]
[[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"
source = "registry+https://github.com/rust-lang/crates.io-index"
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) &