Po2 Problem

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Po2 Problem

Post by davisdude »

I know that older computers cannot handle non po2 pictures (2*2, 4*4, 32*32, etc.), but I have two questions:
Can the images be, say, 32*64?
And can they support drawing other things in non po2 ways (like love.graphics.rectangle)? What is the performance like with those?
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
User avatar
retrotails
Party member
Posts: 212
Joined: Wed Apr 18, 2012 12:37 am

Re: Po2 Problem

Post by retrotails »

davisdude wrote:I know that older computers cannot handle non po2 pictures (2*2, 4*4, 32*32, etc.), but I have two questions:
Can the images be, say, 32*64?
And can they support drawing other things in non po2 ways (like love.graphics.rectangle)? What is the performance like with those?
32x64 should always be doable, and everything that's not an image can always be any size and non Po2 sizes should not affect their speed (though they might be slightly slower if they cover more of the screen but that's a different thing)
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: Po2 Problem

Post by Davidobot »

LÖVE automatically pads images that ar non Po2 on older cards.
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: Po2 Problem

Post by raidho36 »

Not to mention that Po2-affected cards are by now really old, odds of encountering such are minimum.
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: Po2 Problem

Post by davisdude »

Okay. Glad that's solved. :P
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Po2 Problem

Post by Jasoco »

raidho36 wrote:Not to mention that Po2-affected cards are by now really old, odds of encountering such are minimum.
Yeah, but you'd think that about canvases and we still get people complaining about them.
jjmafiae
Party member
Posts: 1331
Joined: Tue Jul 24, 2012 8:22 am

Re: Po2 Problem

Post by jjmafiae »

Jasoco wrote:
raidho36 wrote:Not to mention that Po2-affected cards are by now really old, odds of encountering such are minimum.
Yeah, but you'd think that about canvases and we still get people complaining about them.
because of the crappy drivers!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest