kitgit

tirbofish/dropbear · diff

25ba059 · Thribhu K

feature: memory was an issue when serializing to bytes, so i made a new model file type (eucmdl) and a new generic binary file type (eucbin).

Unverified

diff --git a/Cargo.toml b/Cargo.toml
index e53fdc7..839b008 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -31,7 +31,7 @@ env_logger = "0.11"
 futures = "0.3"
 gilrs = "0.11"
 git2 = { version = "0.20", features = ["vendored-openssl"] }
-glam = { version = "0.30", features = ["serde", "mint", "bytemuck"] }
+glam = { version = "0.30", features = ["serde", "mint", "bytemuck", "rkyv", "bytecheck"] }
 hecs = { version = "0.11", features = ["serde"] }
 log = "0.4"
 log-once = "0.4"
@@ -89,6 +89,7 @@ puffin_http = "0.16"
 dyn-clone = "1.0"
 downcast-rs = "2.0"
 float-derive = "0.1"
+rkyv = "0.8"
 
 [workspace.dependencies.image]
 version = "0.24"
diff --git a/crates/dropbear-engine/Cargo.toml b/crates/dropbear-engine/Cargo.toml
index a7df5a3..2fe5667 100644
--- a/crates/dropbear-engine/Cargo.toml
+++ b/crates/dropbear-engine/Cargo.toml
@@ -30,7 +30,7 @@ log.workspace = true
 log-once.workspace = true
 serde.workspace = true
 spin_sleep.workspace = true
-wgpu.workspace = true
+wgpu = { workspace = true, features = ["serde"] }
 winit.workspace = true
 hecs.workspace = true
 parking_lot.workspace = true
@@ -49,6 +49,7 @@ puffin.workspace = true
 bitflags.workspace = true
 puffin_http.workspace = true
 float-derive.workspace = true
+rkyv.workspace = true
 
 #yakui-wgpu.workspace = true
 #yakui.workspace = true
diff --git a/crates/dropbear-engine/src/model.rs b/crates/dropbear-engine/src/model.rs
index dfd3e4c..d08d88e 100644
--- a/crates/dropbear-engine/src/model.rs
+++ b/crates/dropbear-engine/src/model.rs
@@ -10,6 +10,7 @@ use gltf::texture::MinFilter;
 use parking_lot::RwLock;
 use puffin::profile_scope;
 use rayon::prelude::*;

Large diffs are not rendered by default. Showing the first 50 of 1544 lines. Show full diff