Created
March 22, 2022 18:53
-
-
Save EngineerSmith/0ec18853fad85848d2de7c59fe0a2596 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
local timer = 0 | |
local sinCounter | |
function love.update(dt) | |
timer = timer + dt | |
sinCounter = appleCake.counter("sin", {sin=math.sin(timer)}, sinCounter) | |
if timer > 0.1 then | |
appleCake.counter("memory", {memory=collectgarbage("count")}) | |
timer = 0 | |
end | |
-- These could be optimized to use the same arg table as well | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment