event_t
add
Name
Type
Description
events.present_queue:add(function ()
-- will be called every time game queues a frame for rendering
end);remove
Name
Type
Description
Last updated
events.present_queue:add(function ()
-- will be called every time game queues a frame for rendering
end);Last updated
local function on_present()
if some_condition then
events.present_queue:remove(on_present)
end
end
events.present_queue:add(on_present)