Fix namespace issue.

This commit is contained in:
Joshua Yanovski 2022-08-26 00:33:34 -07:00
parent 83d6243205
commit 13bbc06f9b

View File

@ -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::<Vec<_>>();
let floating = total.saturating_sub(cores.len());
// TODO: NUMA utils