Discussion Forums  >  Uncategorized

Replies: 6    Views: 309

manga_university
Aspiring developer
Profile
Posts: 48
Reg: Jul 13, 2011
Tokyo
480
07/16/11 03:02 AM (14 years ago)

Project causes CPU to spike

First, I want to commend the creators of Buzztouch and all of the fine people on this forum who offer advice and assistance. I've been having a wonderful time tinkering with the Buzztouch tools and reading the forum. OK, here's the issue I'm grappling with. Using version 1.5, I've built a pretty nifty application that I think will look great once it is complete. However, when I launch the app in XCode and view it in the simulator, the CPU usage on my MacBook Pro begins to spike at around 100 percent. The culprit, according to the OSX Actvitity Monitor, is indeed the app that I'm building. I also built an app using version 1.4 of Buzztouch, and that app uses very little CPU when opened in XCode and the simulator. Anyone else here experiencing similar problems? I'm concerned that once I load the app onto an actual iPhone, it will eat up CPU cycles on that device as well. Cheers!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
07/16/11 03:09 AM (14 years ago)
Sounds like you found something we can all benefit from? We are admittedly not super-skilled at operating Xcodes built in Instruments package. However, we are very interested in doing all we can to minimize memory usage. Memory hog apps are no good for anyone. There are many thousands of these in the wild and we very rarely hear of memory issues or crashes due to the code. This doesn't mean there isn't anything wrong with it. If you can isolate the issue, re-post so we can post a fix for everyone. It's a trick thing finding CPU / MEMORY issues so it may take some tinkering? And, of course, there may be nothing wrong and something strange is happening with one of your screens or your setup? Who knows. See what you can find. Know for sure though that so many of these apps have been built that I'de be very surprised to find something obvious that hogs memory that knowbody else experieneces? Thanks tons for the insightful feedback...we look forward to your discoveries.
 
manga_university
Aspiring developer
Profile
Posts: 48
Reg: Jul 13, 2011
Tokyo
480
like
07/16/11 03:22 AM (14 years ago)
Hi David, Thanks for your reply. Perhaps the best thing for me to do will be remove one feature at a time from the app until I hopefully isolate the one that is causing the spike. I'll spend the next couple of days trying that, and then report back here my findings.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
07/16/11 10:36 AM (14 years ago)
Sounds good in Tokyo. Thanks in advance for whatever you may find?
 
manga_university
Aspiring developer
Profile
Posts: 48
Reg: Jul 13, 2011
Tokyo
480
like
07/16/11 09:27 PM (14 years ago)
Update: I restarted my Mac today and then launched XCode and my 1.5 project. That was about 5 hours ago, and thus far the app has been using only a small percentage of the CPU — around 10 percent. It's no longer spiking to 100 percent as it was doing yesterday, when I started this thread.\ Makes me think the problem might have been with my Mac itself, and not the app. However, I'm going to continue to monitor the situation, and if I find the app causing the CPU to spike again, I'll report my findings here.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
07/16/11 10:20 PM (14 years ago)
Good work. Good plan. Good news ;-)
 
manga_university
Aspiring developer
Profile
Posts: 48
Reg: Jul 13, 2011
Tokyo
480
like
07/18/11 01:04 AM (14 years ago)
David, This is completely off-topic, but I was just reading the about section on buzztouch.com, and noticed that you attended CSU Monterey Bay. Nice to such great things coming out of the CSU system! (I graduated from CSU Sacramento in 1987.)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.