How can I optimize javascript for iPhone?

How can I optimize javascript for iPhone?

Postby reiner » Tue Feb 08, 2011 6:02 am

I wrote a web app for iPhone www.cwynn.com/games/mypiggybank.htm
It shows a coin dropping into a piggy bank (both just images)
and I'm using a setTimeout to shrink the coin and move it down

window.setTimeout("moveObjRight(" +obj.id+ ");", 10 * (1/centsPerSecond));

it changes speed based on how much money you make so you can see how fast you earn pennys

anyways on a desktop it works great on values up to $150/hour

but on my iphone its way slower than it should be
$25/hour - $100000/hour
all appear about the same

is there a better way for this sort of thing for iPhone?
User avatar
reiner
 
Posts: 101
Joined: Sun Dec 13, 2009 4:36 am

How can I optimize javascript for iPhone?

Postby platon » Tue Feb 08, 2011 6:11 am

dono but try purchase new java script or C++ or visual basics 2005 have fun
hope this helped
User avatar
platon
 
Posts: 82
Joined: Wed Sep 16, 2009 7:10 am


Return to iPhone

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Google Adsense [Bot], holdyn7, jennelle72, meldrick, percival10 and 41 guests