mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-09-09 03:59:53 -04:00
move cpuThreads inference to main.zig
This commit is contained in:
parent
11df21d2d2
commit
678a5c1d6c
@ -356,7 +356,7 @@ pub fn main() void {
|
||||
settings.init();
|
||||
defer settings.deinit();
|
||||
|
||||
threadPool = utils.ThreadPool.init(globalAllocator, settings.cpuThreads.?);
|
||||
threadPool = utils.ThreadPool.init(globalAllocator, settings.cpuThreads orelse @max(1, (std.Thread.getCpuCount() catch 4) -| 1));
|
||||
defer threadPool.deinit();
|
||||
|
||||
file_monitor.init();
|
||||
|
Loading…
x
Reference in New Issue
Block a user