ennabled logging ooops
This commit is contained in:
parent
89c12b4a0b
commit
609a3d79cd
|
@ -91,3 +91,7 @@ end]]
|
||||||
function logPrint(string)
|
function logPrint(string)
|
||||||
if logging then print(string) end
|
if logging then print(string) end
|
||||||
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()
|
function love.load()
|
||||||
--logging = true
|
logging = true
|
||||||
if logging then print("love: "..collectgarbage("count").." kB") end
|
if logging then print("love: "..collectgarbage("count").." kB") end
|
||||||
arrow = 0
|
arrow = 0
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ function love.update(dt)
|
||||||
if debug or logging then
|
if debug or logging then
|
||||||
memoryUsage = math.floor(collectgarbage("count"))
|
memoryUsage = math.floor(collectgarbage("count"))
|
||||||
end
|
end
|
||||||
logPrint("Second "..secs..": "..memoryUsage.." kB")
|
logWrite("Second "..secs..": "..memoryUsage.." kB")
|
||||||
end
|
end
|
||||||
|
|
||||||
--keypressed
|
--keypressed
|
||||||
|
|
Loading…
Reference in New Issue