Game Development Community

iTGB 1.2 TGBGame.app file size is too big(11MB)

by kingkong · in iTorque 2D · 05/17/2009 (6:57 am) · 6 replies

i compiled "iTGB 1.2/engine/compilers/xcode" project and built TGBGame.app which size is about 11MB.
prebuilt TGBGame.app in "iTGB_1_2.tgz/tgb/gameData/T2DProject" is about 6.8 MB.
so i checked inside of TGBGame.app package that I built.
Ogg.framework, Theora.framework, Vorbis.framework has two copies of files,
unlike the one in "iTGB_1_2.tgz" has one copy and a link to it.

TGBGame.app/Contents/Frameworks/Ogg.framework/Ogg 48KB
TGBGame.app/Contents/Frameworks/Ogg.framework/Versions/A/Ogg 48KB

TGBGame.app/Contents/Frameworks/Theora.framework/Theora 500KB
TGBGame.app/Contents/Frameworks/Theora.framework/Versions/A/Theora 500KB

TGBGame.app/Contents/Frameworks/Ogg.framework/Vorbis 2.5MB
TGBGame.app/Contents/Frameworks/Ogg.framework/Versions/A/Vorbis 2.5MB

also frameworks(Ogg, Theora, Vorbis) in "iTGB_1_2/engine/lib/xiph/macosx" have 2 copies like above. not 1 copy and a link.

I'm a MacOS and Xcode newbie so i don't know how to fix them.
could you guys give me advices, please?
thanks.

PS: i didn't edit the xcode project except correcting OpenAL.framework link which was broken.
i guess framewors in "iTGB_1_2.tgz" are wrong. maybe?

#1
05/17/2009 (8:31 am)
Those frameworks shouldn't even really be referenced, in my opinion. The hardware isn't up to Vorbis decoding and running a game at the same time.
#2
05/20/2009 (2:08 am)
any advices to fix this issue?
#3
05/20/2009 (2:22 am)
Waiting and hoping that 1.2.1 or 1.3 finally makes iTGB an iphone targeted tech and removes all references to non-iphone code & frameworks thats included and referenced all over the place or do that work yourself by removing the theora and vorbis references as well as all includes pointing to them.

But be aware that this also means that you must use TGB to build desktop games


Additionally, TGBGame is the desktop game.
Not the iPhone one, so the size shouldn't matter
The iphone project is in xcode_iPhone
#4
05/20/2009 (6:21 am)
i'm making both desktop & iphone version.
small size file is better even for the desktop. right? ;)

i don't mind to include theora and vorbis frameworks.
what i'm asking is the size difference between prebuilt TGBApp.app included in "iTGB_1_2.tgz" and the one that I built from the project xcode for mac os.
like i explained above.
#5
05/20/2009 (6:44 am)
It could be that you built a universal binary, which you should see in the info about the app.
#6
05/30/2009 (1:34 pm)
Logged for v1.2.1.

Planned fix is to remove as many references to unused source files and libraries as possible to reduce loading time and app size.