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 - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -