Page 1 of 1

image size limits?

Posted: Sun May 08, 2022 4:32 pm
by Enno
I have an awkwardly sized spritesheet that is 18432 pixels wide by 80 pixels tall (my sprites are 384 pixels wide). When I try to load it with love.graphics.newImage, it draws as garbage (two solid bars of pink and white on top of each other). This seems to hold true for any width down to 16512 pixels, while a 16128 pixels wide PNG draws fine. Is there a natural limit to the image dimensions or the number of pixels in an image?

Re: image size limits?

Posted: Sun May 08, 2022 5:14 pm
by slime

Re: image size limits?

Posted: Mon May 09, 2022 1:26 pm
by Jasoco
Yeah. It can vary depending on the GPU. So you might want to either use smaller images, break it into chunks, or have fallback smaller versions. Basically prepare for lower system limits when you can.