Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/Modules/Common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@ if launch.devMode and profiler == nil then
ConPrintf("Unable to Load Profiler")
end

-- Optimize coroutines to run at full framerate
local co_create = coroutine.create
local active_coroutines = setmetatable({}, { __mode = "k" })
function coroutine.create(func)
local co = co_create(func)
active_coroutines[co] = true
return co
end

function coroutine._list()
return active_coroutines
end

-- Class library
common.classes = { }
local function addSuperParents(class, parent)
Expand Down