Codea memory leak?

-- 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

@skar @dave1707 @sim - when I ran this embedded video on my Android phone and the video stops it fires up advert type videos. I find this intrusive. Is it linked to the source of the posted video or the Codea website?

We don’t run ads, so that seems like a side-effect of YouTube?

Thanks sim, thought as much. I’ve posted videos from YouTube but don’t use their advertising system so hopefully my posts are clear of adverts.