I think my game will have many hundreds of sprites in it, so I wanted to check performance before starting.
To use the tool:
- Turn the sets of images on and off with number keys 1-5.
- Toggle FSAA between 0 and 2 with "F" key
I have some questions:
- Are there any techniques in my code I'm missing that could improve the framerate?
- One image in particular, number 4 (the weird aardvark-looking one), affects the framerate significantly. It is slightly larger than the others, but I can't tell why it has such a negative affect on the framerate. Can anyone explain?
- FSAA completely destroys my framerate. Why? Are there alternatives? Do I really need it when just rendering pngs? I couldn't see a noticeable difference in quality.
Code: Select all
for index, image in ipairs(images) do
if show[image.img_num] then
love.graphics.draw(image.img, image.x, image.y, image.rot, 1, 1, image.img:getWidth() / 2, image.img:getHeight() / 2)
end
end