Created
March 31, 2022 15:30
-
-
Save EngineerSmith/0d894b589e28aaee591b0be8be878ca5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
appleCake.setBuffer(true) | |
local profile | |
function love.update(dt) | |
profile = appleCake.profileFunc(nil, profile) | |
-- ... | |
profile:stop() -- buffered, not sent to be saved | |
end | |
function love.draw() | |
--... | |
appleCake.flush() -- Send all buffered data to be saved | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment