Page 1 of 1

iOS Simulator speed Question

Posted: Tue Jun 16, 2015 2:04 pm
by ericmengyi
I made an app and tested it on iOS Simulator. Everything works great except one thing.
I wrote something like this in the program:

Code: Select all

x=screen_width()!y=screen_height()
for b=0 to 1000
   page "k" at 0,y-y/1000*b
  next b
I use the above code to bring page "k" out from the bottom of the screen. It works smoothly in Smart Basic on iOS devices. However, the same code works weird on iOS Simulator. The page "k" came out way too slow, so I am wondering maybe I should adjust the code to make it faster.
So, my question is which one is more close to "the real situation"? Because I am planing to put my app to App Store, I need to know which one should I trust, Smart Basic or iOS Simulator?

By the way, my computer is Mac Mini 2.6 GHz Intel Core i5, and system is OS 10.10.3, Xcode 6.3.2, iOS Simulator 8.3.
Thank you!

Re: iOS Simulator speed Question

Posted: Tue Jun 16, 2015 2:15 pm
by Mr. Kibernetik
Different devices work with different speeds.
iOS Simulator on your Mac is just one more "device".

Re: iOS Simulator speed Question

Posted: Tue Jun 16, 2015 2:29 pm
by ericmengyi
Will the speed that I run my program in Smart Basic on my iPhone 5s be the same when I make it to the real app and run it on my iPhone 5s?

Re: iOS Simulator speed Question

Posted: Tue Jun 16, 2015 2:37 pm
by Mr. Kibernetik
ericmengyi wrote:Will the speed that I run my program in Smart Basic on my iPhone 5s be the same when I make it to the real app and run it on my iPhone 5s?
Yes, it is exactly the same.
You can install your app on your iPhone and check it.

Re: iOS Simulator speed Question

Posted: Tue Jun 16, 2015 3:20 pm
by ericmengyi
You can install your app on your iPhone and check it.
Really!? How to do that?

Re: iOS Simulator speed Question

Posted: Tue Jun 16, 2015 4:41 pm
by Mr. Kibernetik
ericmengyi wrote:
You can install your app on your iPhone and check it.
Really!? How to do that?
As any other iOS app, developed in Xcode.
Please refer Apple documentation about using Xcode.

Re: iOS Simulator speed Question

Posted: Wed Jun 17, 2015 2:52 pm
by ericmengyi
Thank you! :D