iphone - UIScrollView sporadically loses bounce and fluid scrolling -



iphone - UIScrollView sporadically loses bounce and fluid scrolling -

i have implemented working uiscrollview layer on top of cocos2d using fantastic tutorial:

http://bitbattalion.com/2011/09/uikit-uiscrollview-and-cocos2d/

however, scroll view sporadically becomes sluggish , choppy, including upon loading scene. when happens, scrolling , no longer able flicked or downwards sort of variable velocity. loses of it's bounce , remain partially of screen until next touch registered.

the weird thing though, if pull downwards notification center, fixes scroll view every time. scrolling of sudden becomes fluid , edges bounce beautifully place.

what happening here?

instruments may help tackle problem. run using coreanimation tool can handle on might experiencing drop in frame rate. you'll need have device connected run coreanimation tool.

this tutorial available @ http://mobileoverlord.com/instruments-optimizing-core-animation/

select profile build scheme.

select coreanimation profiling tool

when tool running scroll around in scroll view , maintain eye on frame rate. 60 great.

if need dial in on more can turn on color blended layers debug options in instruments panel view(menu) -> instruments

without color blended layers (left)

with color blended layers (right)

the basic rule of thumb here is, more reddish see less optimized view animation. although, don't want remove reddish either, %50 right.

iphone ios ios5 uiscrollview cocos2d-iphone

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -