Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-01-2009, 11:25 PM   #1 (permalink)
Registered Member
 
Join Date: Apr 2009
Posts: 15
Default Memory Issue- works on 3GS but crashes on 3G

Hi all,

I've been developing a game on my iPhone 3GS. The game is very graphic intensive. The total size of the png files is about 40MB but everything runs smoothly and never crashed before (the longest I played the game for 30 minutes). Yesterday I installed the app on an iPhone 3G and every time it crashes within 1 minute. Does anyone know if the size of the graphic files is causing the problem?

Also, when I run instruments, in the ObjectAlloc row the maximum size I see is around 2.5MB. How is this number possible when I load about half of the 40MB png files at once? Does the iPhone manage these images somehow to make the memory usage to be so low or am I interpreting this number wrong?

Thanks so much for the help in advance. I just need to get it working on 3G and then I'll be able to submit the app.
Jecht is offline   Reply With Quote
Old 11-02-2009, 01:14 AM   #2 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 166
Default

The iPhone 3gs has twice the memory available to apps than the other phones (256mb to 128mb). This is one of the big reasons it is so much faster than the older phones. THe memory could be used up for a number of reasons, try not loading in all the textures, and see if it is still causing problems.
cakesy is offline   Reply With Quote
Reply

Bookmarks

Tags
crash, graphic, memory

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 258
23 members and 235 guests
ADY, AragornSG, bookesp, chillyh, dacapo, Dani77, Davey555, Desert Diva, Dominus, glenn_sayers, HemiMG, JasonR, LEARN2MAKE, M.A.S., marshusensei, mer10, nobre84, Oral B, prchn4christ, Raggou, Rudy, spiderguy84, themathminister
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,765
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:29 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0