image sequence - memory performance
Posted: Tue Feb 28, 2017 2:01 pm
Hi, I'm trying to get an image sequence running.
The performance is very good until the DDR is completly full. After that the GC seems to start working and making some space for new images on RAM. Is there any manual way to free RAM?
Following a code snipped how I'm doing it right now: (maybe something realy simple I'm diong wrong?)
The performance is very good until the DDR is completly full. After that the GC seems to start working and making some space for new images on RAM. Is there any manual way to free RAM?
Following a code snipped how I'm doing it right now: (maybe something realy simple I'm diong wrong?)
Code: Select all
img = "synctest_QFHD-DDS/"
start = 0001
ende = 3000
frame = start
function love.load()
image = love.graphics.newImage(img .. string.format("%04d", frame) .. ".dds")
end
function love.draw()
love.graphics.draw(image, 0, 0, 0, 0.5, 0.5)
end
function love.update(dt)
image = love.graphics.newImage(img .. string.format("%04d", frame) .. ".dds")
frame = frame % ende + 1
end