iOS timing: Go stack stackPath with lockmessages set to true

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
trevix
Posts: 960
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

iOS timing: Go stack stackPath with lockmessages set to true

Post by trevix » Sun Aug 27, 2017 11:42 am

OSX 10.12.6, LC 8.1.5RC3, iOS simulator 9.2, iPad 3 with iOS 9.3.5

On my splash screen script I need to open, save and close the final stack, in order to do some changes like localisation , without running its Preopenstack, open stack, etc.
The script is similar to this:

Code: Select all

...
 put the milliseconds into tMillSeconds
    lock messages
    go  invisible stack gPref["AllPath"]["PathFR"]
put the milliseconds - tMillSeconds into tResult
...
Note that the path (gPref["AllPath"]["PathFR"]) is, on the standalone:
OSX - Inside the "Resources/_MacOS/" of the package
iOS - inside specialfolderpath("engine") & "/NameOfTheApp.lcfr"

Everything works fine, BUT tResult is roughly:
- 0,5 seconds on OSX
- 1 seconds on iOS simulator
- 11 seconds on the iPad 3 !!!!!!!

I checked and the preopenstack of the final stack (around 5MB) is correctly not run (since there is a lock messages).
Any Idea why is taking so long on the iPAD?
Thanks
Trevix
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7227
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: iOS timing: Go stack stackPath with lockmessages set to

Post by jacque » Sun Aug 27, 2017 3:32 pm

Actually, on iOS, files are now in specialFolderPath("resources"). When searching for file paths, the engine will translate calls to specialFolderPath("engine") to look in the resources folder instead. But that certainly shouldn't take 11 seconds to do.

You could try changing the path to use the resources folder instead to see if it helps though.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

trevix
Posts: 960
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: iOS timing: Go stack stackPath with lockmessages set to

Post by trevix » Mon Aug 28, 2017 3:06 pm

I tried, using"resources" but to no avail. Timing is the same.
It is not also a memory problem of the iPad (17 GB free over 27GB).
Note also that once loaded, the final stack runs fine.

I am starting to believe that is a bug. Will try with LC8.1.6
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

trevix
Posts: 960
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: iOS timing: Go stack stackPath with lockmessages set to

Post by trevix » Mon Aug 28, 2017 4:07 pm

See BUG 20304
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

trevix
Posts: 960
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: iOS timing: Go stack stackPath with lockmessages set to

Post by trevix » Tue Aug 29, 2017 9:03 am

Wrong Forum or Wrong language
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: iOS timing: Go stack stackPath with lockmessages set to

Post by shaosean » Tue Aug 29, 2017 9:04 am

it's spam.. i'm sure you may have noticed that they've been posting to most threads (i've been reporting them) but i think this user just needs to be removed..

Post Reply

Return to “Talking LiveCode”