ennabled logging ooops

This commit is contained in:
bizcochito 2022-02-07 09:41:53 +01:00
parent 89c12b4a0b
commit 609a3d79cd
2 changed files with 6 additions and 2 deletions

View File

@ -91,3 +91,7 @@ end]]
function logPrint(string)
if logging then print(string) end
end
function logWrite(string)
if logging then print(string) end
end

View File

@ -1,5 +1,5 @@
function love.load()
--logging = true
logging = true
if logging then print("love: "..collectgarbage("count").." kB") end
arrow = 0
@ -81,7 +81,7 @@ function love.update(dt)
if debug or logging then
memoryUsage = math.floor(collectgarbage("count"))
end
logPrint("Second "..secs..": "..memoryUsage.." kB")
logWrite("Second "..secs..": "..memoryUsage.." kB")
end
--keypressed