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

View Single Post
Old 02-01-2010, 03:59 PM   #3 (permalink)
Centurion Games
Registered Member
 
Centurion Games's Avatar
 
Join Date: Nov 2009
Location: Beaverton, OR
Posts: 119
Default

Quote:
Originally Posted by Duncster2k4 View Post
Hi all,

I have a game which is running using a timer quite happily at 30fps. I have just tried adding playback of a local ambient MP3 track, but the performance of my game takes quite a hit, and becomes noticeably slower.

My question is, how *should* I be going about playing back an MP3?

Cheers,

D.
Make sure your audio session is set up to Ambient Solo and that your only playing one track, this will utilize the hardware. Still though even with hardware use MP3 playback takes quite a bit of utilization. We've noticed playback generally causes a 5-8fps drop, so it really depends on how much headroom you have above 30fps. For instance if your game could run at 40-50fps but you have it capped at 30fps you probably won't see a problem. On the other hand if your barely making 30fps, your going to be dipping down into mid and low 20's most likely.
__________________
Centurion Games|@centuriongames
Centurion Games is offline   Reply With Quote
 

» Advertisements
» Online Users: 262
19 members and 243 guests
ADY, apatsufas, ckgni, F_Bryant, IphoneSdk, jakerocheleau, ketaskin, MarkC, michelle, NSeven, rob.mccarthy, rodrigozanatta, smethorst, Sunny46, themathminister, TheWebWizz, V_SC&, Xaron, ziocleto
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,876
Threads: 89,225
Posts: 380,711
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jorge599
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:18 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.