performance - TouchesMoved lags more in iOS8? -
i'm battling ios 8 performance problems. updating ios 8 has literally made application near unusable on ipad 2's. there fundamental performance issues i'm trying iron out see if can avoid them or @ least lessen effect of them on application. 1 problem dragging uiimageviews. there's different how touchesmoved function gets called uiimageviews.
please see video below full description, here current findings. i'm using touchesmoved function in uiimageviews drag objects across screen when user drags finger across screen.
public override void touchesmoved (nsset touches, uievent evt) { base.touchesmoved (touches, evt); uitouch touch = touches.anyobject uitouch; pointf touchlocation_old = touchlocation; touchlocation = touch.locationinview (this.superview); // console.writeline("touchlocation = " + touchlocation); float offsetx = touchlocation.x - touchlocation_old.x; float offsety = touchlocation.y - touchlocation_old.y; center = new pointf(center.x + offsetx, center.y + offsety); }
in project, modify position of object i'm dragging, there seems sort of delay or throttle touchesmoved event. normally, touchesmoved event goes of every couple milliseconds, in ios 8 in situations it's going off every 120 ms causing lag spikes when dragging objects across screen. why this? ios 8 , touchesmoved function has changed
additional note, i've noticed large number of uiviews added view controller causes this. reason in ios 7, adding large number of uiviews view controller didn't effect much, in ios 8 causes touchesmoved function called less (possibly because it's iterating through of views determine if it's touching them? ios 7 have done right? did in ios 8 make process more time consuming?) i've noticed uiscrollviews become "heavier" , "slower" quicker in ios 8 well, in ios 7 working smoothly same number of subviews.
----added hardware info----
ipad 2 mc969ll/a on ios 7.1.2
ipad mini md528ll/a on ios 8.0
----added findings----
in ios 8, large numbers of uiviews within view controller's view lagging performance of cakeyframeanimation's well. though test case isn't extreme seen in application, i've proven touchesmoved issue out in isolated test case below.
Comments
Post a Comment