iOS Simulator speed Question

Post Reply
ericmengyi
Posts: 42
Joined: Thu Mar 12, 2015 7:22 am
My devices: iphone 5s, /ipad Air

iOS Simulator speed Question

Post 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!

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: iOS Simulator speed Question

Post by Mr. Kibernetik »

Different devices work with different speeds.
iOS Simulator on your Mac is just one more "device".

ericmengyi
Posts: 42
Joined: Thu Mar 12, 2015 7:22 am
My devices: iphone 5s, /ipad Air

Re: iOS Simulator speed Question

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

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: iOS Simulator speed Question

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

ericmengyi
Posts: 42
Joined: Thu Mar 12, 2015 7:22 am
My devices: iphone 5s, /ipad Air

Re: iOS Simulator speed Question

Post by ericmengyi »

You can install your app on your iPhone and check it.
Really!? How to do that?

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: iOS Simulator speed Question

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

ericmengyi
Posts: 42
Joined: Thu Mar 12, 2015 7:22 am
My devices: iphone 5s, /ipad Air

Re: iOS Simulator speed Question

Post by ericmengyi »

Thank you! :D

Post Reply