Page 1 of 1

Po2 Syndrome

Posted: Sun Apr 29, 2012 2:45 pm
by baconhawka7x
Ah yes. Po2 syndrome. Some thing that I do not suffer from:) But I had a quick question about it.

I know it happens when someone loads an image that isn't a power of two. But, can I draw a rectangle(love.graphics.rectangle) that isn't a multiple of two? Or will the po2 syndrome still occour?

Re: Po2 Syndrome

Posted: Sun Apr 29, 2012 2:53 pm
by kikito
Rectangles do not have po2 issues.

Re: Po2 Syndrome

Posted: Sun Apr 29, 2012 4:34 pm
by Jasoco
Only Images suffer from Po2. And only before 0.8.0 as is my understanding. Can someone shed the light on that once and for all.

Re: Po2 Syndrome

Posted: Sun Apr 29, 2012 5:35 pm
by Nixola
Yes, only images should suffer from PO2 Syndrome, and they'd suffer from it in 0.8.0 too, if LOVE didn't autopad images

Re: Po2 Syndrome

Posted: Sun Apr 29, 2012 6:03 pm
by slime
Images and canvases/framebuffers both "suffer" from the problem that older video cards can't deal with non power-of-2 dimensions. 0.8.0 works around the problem for images (but not canvases) by auto-padding non power-of-2 images with transparency on computers that don't support it. If you intend to use wrapping on non power-of-2 images, be aware that it may look messed up on those computers.

Re: Po2 Syndrome

Posted: Mon Apr 30, 2012 12:43 am
by baconhawka7x
Alright, thanks.

Re: Po2 Syndrome

Posted: Mon Apr 30, 2012 5:05 pm
by Lynnjones
Thanks for clearing that up