Is DDS cross platform? (+ related question)
Posted: Fri Oct 23, 2020 9:54 pm
My game have a some huge animations that uses a lot of RAM and takes too long to load, so I tried to convert the animations to .dds files using DXT compression and it really helped me. But since DDS is something from DirectX, would it work on other platforms like Android, PS4, etc?
My other question is: In my previous game the player have a option to change the graphics quality. I made this function to make the image quality lower:
But in the documentation says that DXT compression doesn't work on canvases, so there's another way to make a "quality lowerer"? Including smaller versions of the images would increase the file size dramatically, so i don't want to use this approach if possible.
My other question is: In my previous game the player have a option to change the graphics quality. I made this function to make the image quality lower:
Code: Select all
lg = love.graphics
-- This function is called for every loaded image
-- "lowgraphics" is the quality level, the higher is the number, the lower is the quality
function resizeImage(image)
local iw, ih = image:getDimensions()
local resized = lg.newCanvas(iw/div, ih/div)
lg.setCanvas(resized)
lg.clear()
lg.origin()
lg.draw(image,0,0,0,1/lowgraphics)
lg.setCanvas()
image:release()
return resized
end
-- And for drawing
lg.draw(image, 0, 0, 0, lowgraphics)