From 018ab55bdb02e7774044198c8a30e0d02a7c6e29 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 25 Feb 2024 16:53:08 -0600 Subject: optimize physics --- azalea-world/src/container.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'azalea-world/src') 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>>, + pub instances: FxHashMap>>, } impl InstanceContainer { -- cgit v1.2.3