ios - Spritekit: First texture draw slow (preloaded) -


i'm having performance issue regarding apple spritekit framework. use method preloadtextureatlases:withcompletionhandler: of sktextureatlas make sure textures loaded before game starts.

yet when first texture of atlas (whatever is) added scene child got small lag, if texture wasn't loaded. it happens first time.

i tried real hard debug , find reason couldn't find it. looking instrument , time profiler got this

time profiler

which seems strange since texture atlas contains allocated textures (and still allocated). why call load method ? maybe it's related opengl texture binding.

i'm sure correspond frame object allocated (see spike on right). nothing else allocated or in motion here.

time spike

i'm stuck on , appreciated. time.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -