First of all, what is QOI (or The Quite OK Image Format)? It's a new, very simple, lossless image format, kind of comparable to PNG, but encodes and decodes faster at the cost of some space. Even a QOI library made in Lua/LuaJIT is faster than the C++ code LÖVE uses to load PNGs!
SloppyQOI on GitHub
Direct link to library file
Usage:
Code: Select all
local qoi = require("qoi")
local playerImage = qoi.load("images/player.qoi")
love.graphics.draw(playerImage)
----------------
I found out about QOI from this video. It mentions the format after explaining how compression works in PNG files (which is also interesting).