-- Use this function to perform your initial setup
function setup()
print("Hello World!")
end
-- This function gets called once every frame
function draw()
-- This sets a dark background color
background(40, 40, 50)
-- This sets the line thickness
text("memory: "..collectgarbage("count").."kb", 500, 500)
end
this simple memory tracker will build and build until garbage collection happens,
is this a memory leak or is it expected cache build up that can be ignored?
i noticed with my larger programs they build up will be much faster with much larger increments and more frequent garbage collection triggers, is that also to be expected? overall the performance is still good but if i can avoid triggering gc frequently i’d like to
check the memory tracker in the upper right corner