TaskScheduler
Collection of settings for the Task Scheduler feature.
This class is not creatable. Instances of this class cannot be created with Instance.new.
This class is a service. It is a singleton that may be acquired with GetService.
Memory category | Instances |
---|
Member index 4
Removed member index 12
History | Member | |
---|---|---|
336 | AreArbitersThrottled: bool | |
51 | BudgetEnforced: bool | |
336 | Concurrency: ConcurrencyModel | |
337 | NumRunningJobs: double | |
337 | NumSleepingJobs: double | |
337 | NumWaitingJobs: double | |
336 | PriorityMethod: PriorityMethod | |
336 | SleepAdjustMethod: SleepAdjustMethod | |
337 | ThreadAffinity: double | |
336 | ThrottledJobSleepTime: double | |
310 | AddDummyJob(exclusive: bool = true, fps: double = 30): void | |
310 | SetThreadShare(timeSlice: double, numShare: int): void |
Description
TaskScheduler is a read-only settings class responsible for the Task Scheduler feature. Can be found in Roblox Studio's settings with the name Task Scheduler.
History 43
- 553 Change Default of ThreadPoolSize from to
- 553 Change Default of ThreadPoolConfig from to
- 553 Change Default of SchedulerRate from to
- 553 Change Default of SchedulerDutyCycle from to
- 486 Change ThreadSafety of ThreadPoolSize from ReadOnly to ReadSafe
- 486 Change ThreadSafety of ThreadPoolConfig from ReadOnly to ReadSafe
- 486 Change ThreadSafety of SchedulerRate from ReadOnly to ReadSafe
- 486 Change ThreadSafety of SchedulerDutyCycle from ReadOnly to ReadSafe
- 462 Change ThreadSafety of ThreadPoolSize from to ReadOnly
- 462 Change ThreadSafety of ThreadPoolConfig from to ReadOnly
- 462 Change ThreadSafety of SchedulerRate from to ReadOnly
- 462 Change ThreadSafety of SchedulerDutyCycle from to ReadOnly
- 413 Change Tags of TaskScheduler from [Service] to [NotCreatable, Service]
- 337 Remove ThreadAffinity
- 337 Remove NumWaitingJobs
- 337 Remove NumSleepingJobs
- 337 Remove NumRunningJobs
- 336 Remove ThrottledJobSleepTime
- 336 Remove SleepAdjustMethod
- 336 Remove PriorityMethod
- 336 Remove Concurrency
- 336 Remove AreArbitersThrottled
- 310 Remove SetThreadShare
- 310 Remove AddDummyJob
- 51 Remove BudgetEnforced
- 48 Change Tags of SetThreadShare from [] to [Deprecated]
- 47 Add SetThreadShare
- 47 Add AddDummyJob
- 47 Add ThrottledJobSleepTime
- 47 Add ThreadPoolSize
- 47 Add ThreadPoolConfig
- 47 Add ThreadAffinity
- 47 Add SleepAdjustMethod
- 47 Add SchedulerRate
- 47 Add SchedulerDutyCycle
- 47 Add PriorityMethod
- 47 Add NumWaitingJobs
- 47 Add NumSleepingJobs
- 47 Add NumRunningJobs
- 47 Add Concurrency
- 47 Add BudgetEnforced
- 47 Add AreArbitersThrottled
- 47 Add TaskScheduler
Members 4
SchedulerDutyCycle
Type | Default | |
---|---|---|
double |
The average time divided by the average interval of the duty cycle.
This property is not replicated. Its interface does not cross the network boundary.
This property is read-only. Its value can be read, but it cannot be modified.
Thread safety | ReadSafe |
---|---|
Category | Diagnostics |
Loaded/Saved | false/true |
History 4
- 553 Change Default of SchedulerDutyCycle from to
- 486 Change ThreadSafety of SchedulerDutyCycle from ReadOnly to ReadSafe
- 462 Change ThreadSafety of SchedulerDutyCycle from to ReadOnly
- 47 Add SchedulerDutyCycle
SchedulerRate
Type | Default | |
---|---|---|
double |
The current average rate of the task scheduler.
This property is not replicated. Its interface does not cross the network boundary.
This property is read-only. Its value can be read, but it cannot be modified.
Thread safety | ReadSafe |
---|---|
Category | Diagnostics |
Loaded/Saved | false/true |
History 4
- 553 Change Default of SchedulerRate from to
- 486 Change ThreadSafety of SchedulerRate from ReadOnly to ReadSafe
- 462 Change ThreadSafety of SchedulerRate from to ReadOnly
- 47 Add SchedulerRate
ThreadPoolConfig
Type | Default | |
---|---|---|
ThreadPoolConfig |
The specified thread pooling configuration for the task scheduler.
Thread safety | ReadSafe |
---|---|
Category | Configuration |
Loaded/Saved | true |
History 4
- 553 Change Default of ThreadPoolConfig from to
- 486 Change ThreadSafety of ThreadPoolConfig from ReadOnly to ReadSafe
- 462 Change ThreadSafety of ThreadPoolConfig from to ReadOnly
- 47 Add ThreadPoolConfig
ThreadPoolSize
Type | Default | |
---|---|---|
int |
The current size of the thread pool.
This property is not replicated. Its interface does not cross the network boundary.
This property is read-only. Its value can be read, but it cannot be modified.
Thread safety | ReadSafe |
---|---|
Category | Diagnostics |
Loaded/Saved | false/true |
History 4
- 553 Change Default of ThreadPoolSize from to
- 486 Change ThreadSafety of ThreadPoolSize from ReadOnly to ReadSafe
- 462 Change ThreadSafety of ThreadPoolSize from to ReadOnly
- 47 Add ThreadPoolSize
Removed members 12
AddDummyJob
Parameters (2) | Default | |
---|---|---|
exclusive | bool | true |
fps | double | 30 |
Returns (1) | ||
void |
Security | LocalUserSecurity |
---|
History 2
- 310 Remove AddDummyJob
- 47 Add AddDummyJob
AreArbitersThrottled
Type | Default | |
---|---|---|
bool |
Category | |
---|---|
Loaded/Saved | false |
History 2
- 336 Remove AreArbitersThrottled
- 47 Add AreArbitersThrottled
BudgetEnforced
Type | Default | |
---|---|---|
bool |
Category | |
---|---|
Loaded/Saved | false |
History 2
- 51 Remove BudgetEnforced
- 47 Add BudgetEnforced
Concurrency
Type | Default | |
---|---|---|
ConcurrencyModel |
Category | |
---|---|
Loaded/Saved | false |
History 2
- 336 Remove Concurrency
- 47 Add Concurrency
NumRunningJobs
Type | Default | |
---|---|---|
double |
This property is read-only. Its value can be read, but it cannot be modified.
Category | |
---|---|
Loaded/Saved | false |
History 2
- 337 Remove NumRunningJobs
- 47 Add NumRunningJobs
NumSleepingJobs
Type | Default | |
---|---|---|
double |
This property is read-only. Its value can be read, but it cannot be modified.
Category | |
---|---|
Loaded/Saved | false |
History 2
- 337 Remove NumSleepingJobs
- 47 Add NumSleepingJobs
NumWaitingJobs
Type | Default | |
---|---|---|
double |
This property is read-only. Its value can be read, but it cannot be modified.
Category | |
---|---|
Loaded/Saved | false |
History 2
- 337 Remove NumWaitingJobs
- 47 Add NumWaitingJobs
PriorityMethod
Type | Default | |
---|---|---|
PriorityMethod |
Category | |
---|---|
Loaded/Saved | false |
History 2
- 336 Remove PriorityMethod
- 47 Add PriorityMethod
SleepAdjustMethod
Type | Default | |
---|---|---|
SleepAdjustMethod |
Category | |
---|---|
Loaded/Saved | false |
History 2
- 336 Remove SleepAdjustMethod
- 47 Add SleepAdjustMethod
ThreadAffinity
Type | Default | |
---|---|---|
double |
This property is read-only. Its value can be read, but it cannot be modified.
Category | |
---|---|
Loaded/Saved | false |
History 2
- 337 Remove ThreadAffinity
- 47 Add ThreadAffinity
ThrottledJobSleepTime
Type | Default | |
---|---|---|
double |
Category | |
---|---|
Loaded/Saved | false |
History 2
- 336 Remove ThrottledJobSleepTime
- 47 Add ThrottledJobSleepTime