Skip to content

Instantly share code, notes, and snippets.

@EngineerSmith
Created March 31, 2022 15:30
Show Gist options
  • Save EngineerSmith/0d894b589e28aaee591b0be8be878ca5 to your computer and use it in GitHub Desktop.
Save EngineerSmith/0d894b589e28aaee591b0be8be878ca5 to your computer and use it in GitHub Desktop.
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