ennabled logging ooops
This commit is contained in:
@@ -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
|
||||
|
||||
4
main.lua
4
main.lua
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user