Page 1 of 1

Drawing lag on iPhone vs. Simulator

Posted: Fri Jul 27, 2012 2:17 pm
by teacherguy
I have tried the various approaches to doing simple drawing in iOS using the points of the line graphic as proposed by Dixie and bn.

I find that no matter how I approach this, it works very well in the Simulator but lags miserably on the iPhone (and I have the 4S). If you move your finger quickly while drawing...forget it, it can't keep up.

I have the accelerated graphics on, and I've made sure to lock the screen, etc. While I understand that of course the Simulator is going to be much faster, it seems to me that there shouldn't be so much difference. I feel like we need a "normal" vs. "best" image mode to make this work?

Has anyone had luck on the iPhone/iPad?

Re: Drawing lag on iPhone vs. Simulator

Posted: Fri Jul 27, 2012 2:54 pm
by Dixie
Teacherguy...

Would you like to post the scripts that you are using for 'drawing'... I have had no speed problems running in the simulator or on the iphone. The 'Skribble' app that is in the iTunes store is using the 'line tool' technique for drawing...

be well,

Dixie

Re: Drawing lag on iPhone vs. Simulator

Posted: Fri Jul 27, 2012 2:59 pm
by teacherguy
Ah well that is very encouraging then!

Last night I went all the way back to square one and used your original script exactly. As expected, it worked very fast on the Simulator, but then lagged for me in my app on my 4S. SO, this suggests (based on what you just posted) that perhaps my line graphic has something going on...would blend level have an impact? I will have to take a look.

OR, could mobgui screw things up? I added that a few days ago and I'm reallllly starting to wonder....

Re: Drawing lag on iPhone vs. Simulator

Posted: Fri Jul 27, 2012 4:36 pm
by teacherguy
OK made some progress. I found that even though I had the opacity of outerglow set to 0, it was causing the lag. Turned it off, and viola.

Thank you Dixie for your post, it got me thinking in the right direction.

Re: Drawing lag on iPhone vs. Simulator

Posted: Sun Jul 29, 2012 6:39 pm
by scotttyang
my issue is when i draw quickly on the ipad, the lines arent smooth but segmented looking when drawing a curve. anyone experience this. if i draw a circle quickly, it looks more like an octagon.?

Re: Drawing lag on iPhone vs. Simulator

Posted: Sun Jul 29, 2012 6:51 pm
by scotttyang
btw, I'm using the curve tool instead....

Re: Drawing lag on iPhone vs. Simulator

Posted: Sun Jul 29, 2012 7:22 pm
by Dixie
Hi...

Are you using 'accelerated rendering' ?

be well

Dixie