cocos2d-iphone SimpleAudioEngine preload strategy -
what best strategy simpleaudioengine effects preload ? preload sound effects @ game startup ? or in each screen's creation preload effects used in screen ? loaded effects released @ point ?
you preload if playing sound effect first time causes noticeable lag. action games want preload gameplay effects. turn-based or otherwise "slower paced" games may ok not preload sound effects.
when , preload depends on needs. typically @ start of gameplay scene (ie during init or onenter).
a preloaded effect not released unless call unloadeffect on it. internally audio engine caches sound effects, not exclusive preloading. playing sound effect load , keep in memory well.
Comments
Post a Comment