Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
ThreadPoolConfig
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
| Name | Value | Description |
|---|---|---|
| Auto | 0 | Let task scheduler make a decision internally. |
| Threads1 | 1 | Utilize 1 worker thread, ignore the physical CPU core count. |
| Threads2 | 2 | Utilize 2 worker threads, ignore the physical CPU core count. |
| Threads3 | 3 | Utilize 3 worker threads, ignore the physical CPU core count. |
| Threads4 | 4 | Utilize 4 worker threads, ignore the physical CPU core count. |
| Threads8 | 8 | Utilize 8 worker threads, ignore the physical CPU core count. |
| Threads16 | 16 | Utilize 16 worker threads, ignore the physical CPU core count. |
| PerCore1 | 101 | Utilize 1 worker thread per available physical CPU core. |
| PerCore2 | 102 | Utilize 2 worker threads per available physical CPU core. |
| PerCore3 | 103 | Utilize 3 worker threads per available physical CPU core. |
| PerCore4 | 104 | Utilize 4 worker threads per available physical CPU core. |
Auto
Let task scheduler make a decision internally.
| Field | Value |
|---|---|
| value | 0 |
Threads1
Utilize 1 worker thread, ignore the physical CPU core count.
| Field | Value |
|---|---|
| value | 1 |
Threads2
Utilize 2 worker threads, ignore the physical CPU core count.
| Field | Value |
|---|---|
| value | 2 |
Threads3
Utilize 3 worker threads, ignore the physical CPU core count.
| Field | Value |
|---|---|
| value | 3 |
Threads4
Utilize 4 worker threads, ignore the physical CPU core count.
| Field | Value |
|---|---|
| value | 4 |
Threads8
Utilize 8 worker threads, ignore the physical CPU core count.
| Field | Value |
|---|---|
| value | 8 |
Threads16
Utilize 16 worker threads, ignore the physical CPU core count.
| Field | Value |
|---|---|
| value | 16 |
PerCore1
Utilize 1 worker thread per available physical CPU core.
| Field | Value |
|---|---|
| value | 101 |
PerCore2
Utilize 2 worker threads per available physical CPU core.
| Field | Value |
|---|---|
| value | 102 |
PerCore3
Utilize 3 worker threads per available physical CPU core.
| Field | Value |
|---|---|
| value | 103 |
PerCore4
Utilize 4 worker threads per available physical CPU core.
| Field | Value |
|---|---|
| value | 104 |