diff options
| author | mat <git@matdoes.dev> | 2024-02-25 16:53:08 -0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-02-25 16:53:08 -0600 |
| commit | 018ab55bdb02e7774044198c8a30e0d02a7c6e29 (patch) | |
| tree | ca9eb536985833eb158383153a322adfacf86267 /azalea-world/src | |
| parent | 13426b035e43c4435854f175155439ab28a18544 (diff) | |
| download | azalea-drasl-018ab55bdb02e7774044198c8a30e0d02a7c6e29.tar.xz | |
optimize physics
Diffstat (limited to 'azalea-world/src')
| -rw-r--r-- | azalea-world/src/container.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/azalea-world/src/container.rs b/azalea-world/src/container.rs index 0b68ead6..69b8f908 100644 --- a/azalea-world/src/container.rs +++ b/azalea-world/src/container.rs @@ -3,6 +3,7 @@ use bevy_ecs::{component::Component, system::Resource}; use derive_more::{Deref, DerefMut}; use nohash_hasher::IntMap; use parking_lot::RwLock; +use rustc_hash::FxHashMap; use std::{ collections::HashMap, sync::{Arc, Weak}, @@ -27,7 +28,7 @@ pub struct InstanceContainer { // telling them apart. We hope most servers are nice and don't do that though. It's only an // issue when there's multiple clients with the same WorldContainer in different worlds // anyways. - pub instances: HashMap<ResourceLocation, Weak<RwLock<Instance>>>, + pub instances: FxHashMap<ResourceLocation, Weak<RwLock<Instance>>>, } impl InstanceContainer { |
