Drawing lag on iPhone vs. Simulator

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Drawing lag on iPhone vs. Simulator

Post by teacherguy » Fri Jul 27, 2012 2:17 pm

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?

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Drawing lag on iPhone vs. Simulator

Post by Dixie » Fri Jul 27, 2012 2:54 pm

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

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Drawing lag on iPhone vs. Simulator

Post by teacherguy » Fri Jul 27, 2012 2:59 pm

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....

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Drawing lag on iPhone vs. Simulator

Post by teacherguy » Fri Jul 27, 2012 4:36 pm

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.

scotttyang
Posts: 125
Joined: Sat Jan 31, 2009 12:01 am

Re: Drawing lag on iPhone vs. Simulator

Post by scotttyang » Sun Jul 29, 2012 6:39 pm

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.?

scotttyang
Posts: 125
Joined: Sat Jan 31, 2009 12:01 am

Re: Drawing lag on iPhone vs. Simulator

Post by scotttyang » Sun Jul 29, 2012 6:51 pm

btw, I'm using the curve tool instead....

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Drawing lag on iPhone vs. Simulator

Post by Dixie » Sun Jul 29, 2012 7:22 pm

Hi...

Are you using 'accelerated rendering' ?

be well

Dixie

Post Reply