Page 5 of 10

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

Posted: Thu Apr 28, 2011 8:09 pm
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\).)

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

Posted: Thu Apr 28, 2011 8:38 pm
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

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

Posted: Thu Apr 28, 2011 8:46 pm
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!

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

Posted: Thu Apr 28, 2011 9:18 pm
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

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

Posted: Thu Apr 28, 2011 10:53 pm
by BlackBulletIV
Nope. But hey, we're just testing. Although I can think of some use for 32K, huuuge composited backgrounds.

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

Posted: Fri Apr 29, 2011 5:38 am
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.

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

Posted: Fri Apr 29, 2011 5:51 am
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.

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

Posted: Fri Apr 29, 2011 9:21 am
by Ghuntar
Jasoco wrote: Would anyone NEED 14m? Would anyone NEED 32t? lol
Bill Gates wrote:640 k ought to be enough for anyone

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

Posted: Fri Apr 29, 2011 10:34 am
by schme16
My results:

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

Posted: Fri Apr 29, 2011 12:32 pm
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