mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix namespace issue.
This commit is contained in:
parent
83d6243205
commit
13bbc06f9b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user