Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

the-prim-files/cs-scheduler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scheduler

Scheduler is a one-script, dependencyless module to schedule tasks, known as "systems".

Example Init

local SchedulerClass = require(path.to.scheduler)
local Scheduler = SchedulerClass.new("Test")

local Runtimes = {
    "PreRender",
    "RenderStepped",
    "Heartbeat"
}

local System = require(path.to.system)

Scheduler:AddSystem(System)
Scheduler:SetRuntimes(Runtimes)

Scheduler:Start()

Example System

local System = {}

System.Configuration = {}
System.StepMode = "PreRender"

function System:Init()
    -- This only runs once.
end

function System:Step()
    -- This runs every frame, depending on the system's StepMode!
end

return System

About

The scheduler used internally in Celestial Spires.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages