From 13bbc06f9bbeb9f0256b351d1636e927c9205e97 Mon Sep 17 00:00:00 2001 From: Joshua Yanovski Date: Fri, 26 Aug 2022 00:33:34 -0700 Subject: [PATCH] Fix namespace issue. --- common/state/src/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/state/src/state.rs b/common/state/src/state.rs index b739ccc448..3f2fed2e3f 100644 --- a/common/state/src/state.rs +++ b/common/state/src/state.rs @@ -175,7 +175,7 @@ impl State { (GameMode::Singleplayer, GameMode::Server) => (0, 2, num_cpu / 2/* + num_cpu / 4 */), (GameMode::Singleplayer, GameMode::Client) => (1, 2, num_cpu - num_cpu / 2/* + num_cpu / 4 */), }; - let total = total.max(MIN_RECOMMENDED_RAYON_THREADS); + let total = total.max(common::consts::MIN_RECOMMENDED_RAYON_THREADS); let cores = core_affinity::get_core_ids().unwrap_or(vec![]).into_iter().skip(start).step_by(step).take(total).collect::>(); let floating = total.saturating_sub(cores.len()); // TODO: NUMA utils