Lag lag lag. No idea why framerate is dipping so low
Posted: Sat Dec 19, 2015 11:58 pm
Something I'm doing is causing very low frame rates to happen. I'm almost entirely sure it's being caused by
in love.draw() but I don't know how to do it in a more efficient way. Any suggestions? Thanks
Code: Select all
for y=1, #currentMap do
for x=1, #currentMap[y] do
if currentMap[y][x] == 1 then
walls[#walls+1] = wall(x*10, y*64)
end
end
end
for i, wall in pairs(walls) do
wall:draw()
end