Survey: Do You Support Framebuffers and/or Non-Po2 [RERUN]

General discussion about LÖVE, Lua, game development, puns, and unicorns.

After completing the test, what does the "You Support: ..." text say? (excluding FB sizes)

Nothing
7
10%
Framebuffers
2
3%
Framebuffers, Non-Po2 Framebuffers
0
No votes
Framebuffers, Non-Po2 Images
1
1%
Framebuffers, Non-Po2 Framebuffers, Non-Po2 Images
52
75%
Non-Po2 Images
7
10%
 
Total votes: 69

User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Survey: Do You Support Framebuffers and/or Non-Po2 [RERU

Post by BlackBulletIV »

Thanks for the results guys.
kalle2990 wrote:This is what I got with my Radeon HD 5870:
Result wrote:Framebuffers
Non-Po2 Framebuffers
Non-Po2 Images
Framebuffers up to the size 32768 x 32768
Power of 3 Framebuffers up to the size 19683 x 19683
Did you modify the test to let it go up to \(2^{15}\) or something? The test currently stops testing Po2 sizes at \(2^{14}\). (And of course \(2^{14} = 16384\).)
User avatar
kalle2990
Party member
Posts: 245
Joined: Sat Sep 12, 2009 1:17 pm
Location: Sweden

Re: Survey: Do You Support Framebuffers and/or Non-Po2 [RERU

Post by kalle2990 »

BlackBulletIV wrote:Did you modify the test to let it go up to \(2^{15}\) or something? The test currently stops testing Po2 sizes at \(2^{14}\). (And of course \(2^{14} = 16384\).)
If I read this code correctly, it will multiply the result once more after each successful test, leaving it at \(2^{15}\).

Code: Select all

for i = 1, 14 do
   status, fb = pcall(love.graphics.newFramebuffer, maxSize, maxSize)
   if not status or type(fb) ~= 'userdata' then break end
   maxSize = maxSize * 2
end
However, adding this proves that the maximum value (even with a loop of 20) is 32768.. ;)

Code: Select all

if status and type(fb) == 'userdata' then
   maxSize = maxSize / 2
end
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Survey: Do You Support Framebuffers and/or Non-Po2 [RERU

Post by BlackBulletIV »

Ooooh, I see, that's because I initially start at \(2^1\). Ok everyone, corrections. The maximum possible values are:

Po2: \(2^{15} = 32,768\)
Po3: \(3^{15} = 14,348,907\)

And I don't think anyone's going to get 14m, ha ha!
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Survey: Do You Support Framebuffers and/or Non-Po2 [RERU

Post by Jasoco »

BlackBulletIV wrote:Ooooh, I see, that's because I initially start at \(2^1\). Ok everyone, corrections. The maximum possible values are:

Po2: \(2^{15} = 32,768\)
Po3: \(3^{15} = 14,348,907\)

And I don't think anyone's going to get 14m, ha ha!
Would anyone NEED 14m? Would anyone NEED 32t? lol
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Survey: Do You Support Framebuffers and/or Non-Po2 [RERU

Post by BlackBulletIV »

Nope. But hey, we're just testing. Although I can think of some use for 32K, huuuge composited backgrounds.
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Survey: Do You Support Framebuffers and/or Non-Po2 [RERU

Post by Jasoco »

BlackBulletIV wrote:Nope. But hey, we're just testing. Although I can think of some use for 32K, huuuge composited backgrounds.
Do you know how low your framerate would be and how much faster it would be to chop it up into smaller pieces? No one will ever need a 32,000 sized image in a Löve game. Especially since it would only work for the smallest amount of people.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Survey: Do You Support Framebuffers and/or Non-Po2 [RERU

Post by BlackBulletIV »

In fact I didn't know, lol. But no, 32K is overkill (let's not even go into 14M).

Wow, someone voted only framebuffers! That is odd. Well, at least I know that getting no image is possible using my ImageData technique.
User avatar
Ghuntar
Prole
Posts: 29
Joined: Wed Nov 25, 2009 8:56 am

Re: Survey: Do You Support Framebuffers and/or Non-Po2 [RERU

Post by Ghuntar »

Jasoco wrote: Would anyone NEED 14m? Would anyone NEED 32t? lol
Bill Gates wrote:640 k ought to be enough for anyone
Crazy Little Thing Called LÖVE.
User avatar
schme16
Party member
Posts: 127
Joined: Thu Oct 02, 2008 2:46 am

Re: Survey: Do You Support Framebuffers and/or Non-Po2 [RERU

Post by schme16 »

My results:
Attachments
My Results
My Results
results.PNG (29.86 KiB) Viewed 3274 times
My Development Diary - http://shanegadsby.info
User avatar
kalle2990
Party member
Posts: 245
Joined: Sat Sep 12, 2009 1:17 pm
Location: Sweden

Re: Survey: Do You Support Framebuffers and/or Non-Po2 [RERU

Post by kalle2990 »

I just saw I made a little mistake when writing the additional code for the fix..

This:

Code: Select all

if status and type(fb) == 'userdata' then
   maxSize = maxSize / 2
end
Should be:

Code: Select all

maxSize = maxSize / 2
This will lead to:

Code: Select all

maxSize is 2
Testing 2 x 2...
Success!
Change maxSize to 4
.....
Testing 16384 x 16384...
Success!
Change maxSize to 32768
Test completed, revert: Change maxSize to 16384

or

Testing 16384 x 16384...
Failure!
Test aborted, revert to last working: Change maxSize to 8192
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 51 guests