GLBasic forum

Main forum => GLBasic - en => Topic started by: pinete on 2011-Sep-18

Title: Ipad max bitmap size problem?
Post by: pinete on 2011-Sep-18
Hi all,
I'm having a problem with my project trying to make it work properly on iPad.

It's not related to codesigning or universal app issues or any other compilation matter... it seems to be problem of the background of the game, what is 2048x2048 jpg.

While iPhone 4 32gb works fine, when I make an universal app and compile for iPad target, it only works if I change the size of the texture, any other way it crashes and come back to iPad desktop.

So I'm wondering if this is something normal due to the bitmap size (I've read iPad can handle 2048x2048 bitmaps as max tex size) or it's just related to some other issue I don't know.

Could you please help me out with this matter or point me in the right direction??
thanks a lot in advance.
Title: Re: Ipad max bitmap size problem?
Post by: Kitty Hello on 2011-Sep-19
2048x2048 is the max texture size on an iPad. I wonder if you might run into memory problems though. That's "quite some wood" you're chopping there.
Title: Re: Ipad max bitmap size problem?
Post by: ampos on 2011-Sep-19
Try with a 2048x2048 png file instead just for testing...
Title: Re: Ipad max bitmap size problem?
Post by: pinete on 2011-Sep-19
Thanks a lot Gernot, really is quite strange.
Ampos, thanks for the idea, I'll do it right now and let you know ;)
Title: Re: Ipad max bitmap size problem?
Post by: pinete on 2011-Sep-19
Hi,
I've tried with a PNG instead, but it keeps no working well.

This is the message Xcode gives to me after app exit
"GDB: Data formatters temporarily unavailable, will retry after a 'continue'. (Uknown error loading shared library "/Developer/usr/lib/libXcodeDebuggerSupport.dylib")"

All my graphics assets it's no more than 16 Mb.

I'm compiling for 'Device' and 'Release', after making an universal app (Project->upgrading current target for Ipad->universal app)
I'm using Xcode 3.2.5
Only way to solve it is reducing the bitmap size (originally of 2048x2048) to a lower res (it even keep working with res of 1500x1024 ยก!)
iPhone 4 32gb work pretty nice!

maybe, just maybe, it could be related to any internal GLBasis issue or bug? my code is so simple, I've been checking again and again and I'm not doing anything strange or advanced, I swear..

Please, any other idea????!!
Thanks a lot in advance!



Title: Re: Ipad max bitmap size problem?
Post by: pinete on 2011-Sep-20
-SOLVED-
just my fault reserving memory for types... sorry :P  :good:
GLBASIC RULES!! :)