diff --git a/Cargo.lock b/Cargo.lock index b433b79fab..6295170996 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7012,7 +7012,6 @@ version = "0.1.0" dependencies = [ "itertools", "lazy_static", - "mimalloc", "rand 0.8.5", "specs", "tracing", @@ -7045,6 +7044,8 @@ dependencies = [ "veloren-common-frontend", "veloren-common-net", "veloren-server", + "veloren-server-agent", + "veloren-world", ] [[package]] @@ -7137,7 +7138,6 @@ version = "0.10.0" dependencies = [ "bytemuck", "lazy_static", - "mimalloc", "vek 0.15.8", "veloren-common", "veloren-common-dynlib", @@ -7187,7 +7187,6 @@ dependencies = [ "kiddo 0.2.4", "lazy_static", "lz-fear", - "mimalloc", "minifb", "noise", "num 0.4.0", diff --git a/assets/common/abilities/ability_set_manifest.ron b/assets/common/abilities/ability_set_manifest.ron index 19bc3af41f..46e3929ac9 100644 --- a/assets/common/abilities/ability_set_manifest.ron +++ b/assets/common/abilities/ability_set_manifest.ron @@ -645,8 +645,8 @@ abilities: [], ), Custom("IcyTalharpa"): ( - primary: "common.abilities.music.icy_talharpa", - secondary: "common.abilities.music.icy_talharpa", + primary: Simple(None, "common.abilities.music.icy_talharpa"), + secondary: Simple(None, "common.abilities.music.icy_talharpa"), abilities: [], ), Custom("Washboard"): ( @@ -675,8 +675,8 @@ abilities: [], ), Custom("DarkGuitar"): ( - primary: "common.abilities.music.dark_guitar", - secondary: "common.abilities.music.dark_guitar", + primary: Simple(None, "common.abilities.music.dark_guitar"), + secondary: Simple(None, "common.abilities.music.dark_guitar"), abilities: [], ), Custom("Sitar"): ( diff --git a/server-cli/Cargo.toml b/server-cli/Cargo.toml index 8be43f3141..cdb1dc5c77 100644 --- a/server-cli/Cargo.toml +++ b/server-cli/Cargo.toml @@ -23,13 +23,17 @@ default = ["worldgen", "persistent_world"] tracy = ["common-frontend/tracy"] plugins = ["server/plugins"] hot-reloading = ["server/hot-reloading"] +hot-agent = ["server/hot-agent"] +hot-site = ["server/hot-site"] [dependencies] server = { package = "veloren-server", path = "../server", default-features = false, features = ["simd"] } +agent = { package = "veloren-server-agent", path = "../server/agent" } common = { package = "veloren-common", path = "../common" } common-base = { package = "veloren-common-base", path = "../common/base" } common-net = { package = "veloren-common-net", path = "../common/net" } common-frontend = { package = "veloren-common-frontend", path = "../common/frontend" } +world = { package = "veloren-world", path = "../world" } tokio = { version = "1.14", default-features = false, features = ["rt-multi-thread"] } num_cpus = "1.0" diff --git a/server-cli/src/main.rs b/server-cli/src/main.rs index 0a450be5b1..7074177400 100644 --- a/server-cli/src/main.rs +++ b/server-cli/src/main.rs @@ -1,7 +1,11 @@ #![deny(unsafe_code)] #![deny(clippy::clone_on_ref_ptr)] -#[cfg(target_os = "windows")] +#[cfg(all( + target_os = "windows", + not(feature = "hot-agent"), + not(feature = "hot-site"), +))] #[global_allocator] static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; diff --git a/server/agent/Cargo.toml b/server/agent/Cargo.toml index 6363701404..9b2ee49c14 100644 --- a/server/agent/Cargo.toml +++ b/server/agent/Cargo.toml @@ -20,6 +20,3 @@ rand = { version = "0.8", features = ["small_rng"] } tracing = "0.1" itertools = "0.10" lazy_static = "1.4.0" - -[target.'cfg(windows)'.dependencies] -mimalloc = "0.1.29" diff --git a/server/agent/src/action_nodes.rs b/server/agent/src/action_nodes.rs index 6f3f7c4d15..1d9f792982 100644 --- a/server/agent/src/action_nodes.rs +++ b/server/agent/src/action_nodes.rs @@ -795,7 +795,6 @@ impl<'a> AgentData<'a> { e ) }); - controller.events.reserve(32); attack_fn(self, agent, controller, tgt_data, read_data); } } diff --git a/server/agent/src/lib.rs b/server/agent/src/lib.rs index f44ec012b0..13d1629376 100644 --- a/server/agent/src/lib.rs +++ b/server/agent/src/lib.rs @@ -3,10 +3,6 @@ #[cfg(all(feature = "be-dyn-lib", feature = "use-dyn-lib"))] compile_error!("Can't use both \"be-dyn-lib\" and \"use-dyn-lib\" features at once"); -#[cfg(all(target_os = "windows", feature = "be-dyn-lib"))] -#[global_allocator] -static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; - pub mod action_nodes; pub mod attack; pub mod consts; diff --git a/voxygen/anim/Cargo.toml b/voxygen/anim/Cargo.toml index 2f3afd8bd4..813de01e6b 100644 --- a/voxygen/anim/Cargo.toml +++ b/voxygen/anim/Cargo.toml @@ -20,6 +20,3 @@ common-dynlib = {package = "veloren-common-dynlib", path = "../../common/dynlib" # Hot Reloading lazy_static = {version = "1.4.0", optional = true} - -[target.'cfg(windows)'.dependencies] -mimalloc = "0.1.29" diff --git a/voxygen/anim/src/lib.rs b/voxygen/anim/src/lib.rs index 59c62b6bf6..0302328bc4 100644 --- a/voxygen/anim/src/lib.rs +++ b/voxygen/anim/src/lib.rs @@ -3,10 +3,6 @@ #[cfg(all(feature = "be-dyn-lib", feature = "use-dyn-lib"))] compile_error!("Can't use both \"be-dyn-lib\" and \"use-dyn-lib\" features at once"); -#[cfg(all(target_os = "windows", feature = "be-dyn-lib"))] -#[global_allocator] -static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; - macro_rules! skeleton_impls { { struct $Skeleton:ident { $( $(+)? $bone:ident ),* $(,)? $(:: $($field:ident : $field_ty:ty),* $(,)? )? } } => { #[derive(Clone, Default)] diff --git a/voxygen/src/main.rs b/voxygen/src/main.rs index eab1449f4b..2854e5b0c1 100644 --- a/voxygen/src/main.rs +++ b/voxygen/src/main.rs @@ -6,7 +6,8 @@ mod cli; #[cfg(all( target_os = "windows", not(feature = "tracy-memory"), - not(feature = "hot-egui") + not(feature = "hot-egui"), + not(feature = "hot-anim"), ))] #[global_allocator] static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; diff --git a/world/Cargo.toml b/world/Cargo.toml index 6ec89254d5..9d053952c4 100644 --- a/world/Cargo.toml +++ b/world/Cargo.toml @@ -78,6 +78,3 @@ required-features = ["bin_compression"] [[example]] name = "heightmap_visualization" required-features = ["bin_compression"] - -[target.'cfg(windows)'.dependencies] -mimalloc = "0.1.29" diff --git a/world/src/lib.rs b/world/src/lib.rs index aebfdad4ba..baede46498 100644 --- a/world/src/lib.rs +++ b/world/src/lib.rs @@ -65,10 +65,6 @@ use vek::*; #[cfg(all(feature = "be-dyn-lib", feature = "use-dyn-lib"))] compile_error!("Can't use both \"be-dyn-lib\" and \"use-dyn-lib\" features at once"); -#[cfg(all(target_os = "windows", feature = "be-dyn-lib"))] -#[global_allocator] -static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; - #[cfg(feature = "use-dyn-lib")] use {common_dynlib::LoadedLib, lazy_static::lazy_static, std::sync::Arc, std::sync::Mutex};