Skip to content

ThreadPoolConfig

Supported Enum

Thread pooling scheme for the task scheduler.

Description

Controls the thread pooling scheme used by TaskScheduler. The selected value determines how many worker threads the task scheduler allocates for background work. TaskScheduler.ThreadPoolConfig defaults to Auto.

The PerCore variants scale the thread count with the number of physical CPU cores reported by the operating system. The Threads variants use an absolute count regardless of hardware. Auto lets the scheduler choose internally.

Items

Item Value Status Notes
Auto 0 Supported Let task scheduler make a decision internally.
Threads1 1 Supported Utilize 1 worker thread, ignore the physical CPU core count.
Threads2 2 Supported Utilize 2 worker threads, ignore the physical CPU core count.
Threads3 3 Supported Utilize 3 worker threads, ignore the physical CPU core count.
Threads4 4 Supported Utilize 4 worker threads, ignore the physical CPU core count.
Threads8 8 Supported Utilize 8 worker threads, ignore the physical CPU core count.
Threads16 16 Supported Utilize 16 worker threads, ignore the physical CPU core count.
PerCore1 101 Supported Utilize 1 worker thread per available physical CPU core.
PerCore2 102 Supported Utilize 2 worker threads per available physical CPU core.
PerCore3 103 Supported Utilize 3 worker threads per available physical CPU core.
PerCore4 104 Supported Utilize 4 worker threads per available physical CPU core.

Roblox reference: ThreadPoolConfig