image size limits?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Enno
Prole
Posts: 8
Joined: Tue Mar 17, 2015 1:10 pm

image size limits?

Post 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?
User avatar
slime
Solid Snayke
Posts: 3166
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: image size limits?

Post by slime »

User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: image size limits?

Post 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 3 guests