Speeding up startup time TunerStudio

For discussion of Phil Tobin's Tuner Studio software (Only about the tuning software itself, not about how to tune or firmware features)

Moderator: LT401Vette

BigBlockMopar
Experienced MS/Extra'er
Posts: 372
Joined: Sat Dec 31, 2011 6:10 am
Location: Netherlands
Contact:

Speeding up startup time TunerStudio

Post by BigBlockMopar »

Just wondering, are there any ways to possibly speed up the startup time of TunerStudio?
Perhaps something like deleting all unused language/translations, get rid of the Help-files, or never-used dash-files and backgrounds?
Daily driver: 1973 Dodge Dart - 360ci engine - 11.3:1cr - MS3x - ignition only. 42RH/A500 OD+LU transmission / 3.23 gears
--------------
Website: https://www.bigblockmopar.nl/
YouTube Channel: https://www.youtube.com/c/BigBlockMopar
Blown88GT
Super MS/Extra'er
Posts: 929
Joined: Sun Dec 15, 2013 7:53 pm
Location: South Florida

Re: Speeding up startup time TunerStudio

Post by Blown88GT »

5 sec. not fast enough?
1988 Mustang GT, 59k miles, Orig Owner
ProCharger 600B I/C, 12psi, FRP Hdrs, Flwmstr F2, 3G Alt, Contour Fan & DCC, 3.55's, Prog Sprg, Subfms, UCA, LCA, FCA, Tokico 5's, Bridgestone RE-71R 245/40R17, Crane HI-6, Kirban FPR, MS2, DIYPNPF60, Spartan 2, C&L76mm blo-thru MAF, 47lb FRP-LU47
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Speeding up startup time TunerStudio

Post by LT401Vette »

I am guessing that you want faster start up for something like a dedicated dashboard?

There may just be something in the works, but this time of year everyone here ends up slammed with support instead of new development. Soon this will be in motion again, my car is dependent on it! I have a new rule that my car can have no real gauge.

As for startup time currently, 500 ms on an i7, 5.2 sec on a Ras Pi 3.
This includes starting the app, loading a regular TS project, and initiating connection. Connection time varies greatly based on connection type.

https://www.youtube.com/watch?v=IL3xx04AHkk
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
BigBlockMopar
Experienced MS/Extra'er
Posts: 372
Joined: Sat Dec 31, 2011 6:10 am
Location: Netherlands
Contact:

Re: Speeding up startup time TunerStudio

Post by BigBlockMopar »

No permament dashboard (yet).
Probably related to old/cheap hardware.
Just wondering if I could speed up things.

My home Mac is old and TS takes 26 seconds from the double-click until the gauges have sweeped down.
Mac Pro (Early 2009) w/SSD HardDisk
2,93 GHz Quad-Core Intel Xeon
16 GB 1066 MHz DDR3
NVIDIA GeForce GT 120 512 MB

But on my cheapish windows tablet (shiver ;) ) it takes some (est.) 15 seconds before it's up and running and shows the difference report.
Usually I work on my tune on the Mac at home and sync the files with Dropbox to my tablet, which I take into the car the next day to upload.

I don't care much how fast or slow TS loads on my Mac but I wouldn't mind seeing some snappier startup performance on the tablet.
(On the otherhand, I could also just leave TS running the night before on the tablet when it's put to sleep until the next morning.)

As for using a dashboard, or what I want to do some time soon, is mounting a mini-PC in the car running a (removable) iPad dash.
I'm thinking of going with an ODROID mini-pc as it seems to pack a little more processing power than the Rasp Pi's.
Daily driver: 1973 Dodge Dart - 360ci engine - 11.3:1cr - MS3x - ignition only. 42RH/A500 OD+LU transmission / 3.23 gears
--------------
Website: https://www.bigblockmopar.nl/
YouTube Channel: https://www.youtube.com/c/BigBlockMopar
noisymime
Helpful MS/Extra'er
Posts: 87
Joined: Mon Feb 15, 2010 3:44 am
Location: Ballarat, Australia

Re: Speeding up startup time TunerStudio

Post by noisymime »

Part of it is definitely a Mac thing. On my 2016 MBP it's around 20-25s to fully load from scratch under OSX, but reboot into Bootcamp and the same version of TS, same tune etc takes easily under 5s.

There's only so much an app can do when the general Java performance is that different.
Mk2 Cortina 1600 with V3.57 MS3+MS3X
Turbo crossflow with COPs, sequential ignition/injection up and running
BigBlockMopar
Experienced MS/Extra'er
Posts: 372
Joined: Sat Dec 31, 2011 6:10 am
Location: Netherlands
Contact:

Re: Speeding up startup time TunerStudio

Post by BigBlockMopar »

"Great" to hear that my old '09 Mac has similar TS startup times as those on a new-ish Mac,
but also kinda sad to realise that 7 years of 'evolution' hasn't been able to speed up Java much on OSX.

TunerStudio itself loads in exactly 10 seconds.
Auto-opening the last tune takes another 15 until the guages have floated down.

Another things I noticed, and I like to compare with other Mac-owners;
- Under Graphing & Logging;
when I make the lower dash visible and start playing back a log, the left mainscreen only manages to refresh about every 1 to 2 times per second.
Hiding the lowerdash makes the playback run a bit smoother, but still only at about 4-5 refreshes/frames per second.

Just tried to change back my custom dash for the default one, but I think I stumbled upon a bug or something, as I wasn't able to save my current default dash, so I could load it again later.
Daily driver: 1973 Dodge Dart - 360ci engine - 11.3:1cr - MS3x - ignition only. 42RH/A500 OD+LU transmission / 3.23 gears
--------------
Website: https://www.bigblockmopar.nl/
YouTube Channel: https://www.youtube.com/c/BigBlockMopar
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Speeding up startup time TunerStudio

Post by LT401Vette »

The JRE has changed a good deal on OS X. 1.6 was still maintained by Apple, 1.7 they turned over 2 Oracle.
It has been a bit of a pain keeping up with the number of things that broke on OS X only over this transition..
I used to use my late 2009 clam MacBook as my main tuning laptop. It was quite good back in the 10.6.8 days.

That same MacBook stills serves as a test machine. The last couple OS upgrade have brought it to it's knees TS and MLV were taking over a minute to start. It had me concerned at 1st, but then I noticed it took 30 seconds to start a Finder. I have blown away the OS no for a clean OS install.

In general I have been assuming the slow start was just part of my old hardware and OS X has been getting very bloated. If even with new hardware it is taking a long time to start, perhaps I need to go through and see if there isn't something specific to OS X that is hanging or slow during start up.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
BigBlockMopar
Experienced MS/Extra'er
Posts: 372
Joined: Sat Dec 31, 2011 6:10 am
Location: Netherlands
Contact:

Re: Speeding up startup time TunerStudio

Post by BigBlockMopar »

Did you replace the stock harddrive with a SSD drive?
That was a very noticable change on my Early 2009 PowerMac and made it fast enough again to get some more years of use out of it.


Just did a quick speedcheck with the Activity Monitor app and noticed both TS and MLV have a very large amount of constant "idle wake ups". Seemed excessive and although I think it would have an impact on system performance, it might not be ofcourse.

I had TS playback a log and it showed around 4000+ Idle Wake Ups. MLV had upto 3500+ Idle Wake Ups when running a log playback.
Running TS and MLV both together while playing back the same log, showed around 3500+ Idle Wake ups for both of the programs.

Starting up TS peaked the CPU load to about max 279% (8-cores) while it was starting up.

Looking in the Console, at System Reports:
java_2017-06-25-213638_BBMMac.wakeups_resource (logfile located in /Library/Logs/DiagnosticsReports)

I'm seeing;

Code: Select all

Wakeups:         45002 wakeups over the last 151 seconds (299 wakeups per second average), exceeding limit of 150 wakeups per second over 300 seconds
Tried Googling for "Java Idle Wake ups" but couldn't find anything senssible to me except a site from Apple themself, but maybe you might have more luck when knowing what to look for;
https://developer.apple.com/library/con ... imers.html
Daily driver: 1973 Dodge Dart - 360ci engine - 11.3:1cr - MS3x - ignition only. 42RH/A500 OD+LU transmission / 3.23 gears
--------------
Website: https://www.bigblockmopar.nl/
YouTube Channel: https://www.youtube.com/c/BigBlockMopar
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Speeding up startup time TunerStudio

Post by LT401Vette »

Nope on the hard drive, this is still the original standard hard drive.

The clean install of Sierra really sped this old Core2 Duo with 4GB RAM up.

From a cold boot:
TS start up: 19 sec
Opening the MS3 example project is 9.5s

Relaunching without a reboot:
TS startup: 11.3 sec
Open the MS3 example project: 8.8s, basically the same.

Before the clean install it took minutes. But as I said everything was ridiculously slow.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
niclase
MS/Extra Newbie
Posts: 2
Joined: Mon Jul 10, 2017 10:24 am

Re: Speeding up startup time TunerStudio

Post by niclase »

Would love to know more about how you got the RPi3 to start TunerStudio in 5.2 sec. Just upgraded from a RPi2 to get some better start time but still takes TunerStudio 45 sec from click to gauges done using gauge only mode. And yes, i timed it, it's not what it feels like :)

Annoying to wait 45sec for tunerstudio when the rpi now boots in less than 10 sec :D
LT401Vette wrote:I am guessing that you want faster start up for something like a dedicated dashboard?

There may just be something in the works, but this time of year everyone here ends up slammed with support instead of new development. Soon this will be in motion again, my car is dependent on it! I have a new rule that my car can have no real gauge.

As for startup time currently, 500 ms on an i7, 5.2 sec on a Ras Pi 3.
This includes starting the app, loading a regular TS project, and initiating connection. Connection time varies greatly based on connection type.

https://www.youtube.com/watch?v=IL3xx04AHkk
benckj
Master MS/Extra'er
Posts: 464
Joined: Mon Dec 19, 2011 3:21 pm

Re: Speeding up startup time TunerStudio

Post by benckj »

Although TS may take some time to boot up I have more of a problem with Shadowdash as I only use TS for tuning. I use SD on an Android 5.1 head unit and monitor the gauges while driving. While I have this set to automatically load the Droid takes a good 15secs to boot then another 20s to load SD. Any way to speed up this process?

jim
Toyota MR2 98 3sgte
MSPNP2 with 3.57 mainboard
Innovate WB O2 & soon to be external GM 3 bar MAP
FTDI USB interface on SD Android 5.1 head unit
TD05SL2-18g with external WG
HKS EBC running 17psi boost.
A2W IC with WI 50/50 meth/water
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Speeding up startup time TunerStudio

Post by LT401Vette »

niclase wrote:Would love to know more about how you got the RPi3 to start TunerStudio in 5.2 sec. Just upgraded from a RPi2 to get some better start time but still takes TunerStudio 45 sec from click to gauges done using gauge only mode. And yes, i timed it, it's not what it feels like :)

Annoying to wait 45sec for tunerstudio when the rpi now boots in less than 10 sec :D
LT401Vette wrote:I am guessing that you want faster start up for something like a dedicated dashboard?

There may just be something in the works, but this time of year everyone here ends up slammed with support instead of new development. Soon this will be in motion again, my car is dependent on it! I have a new rule that my car can have no real gauge.

As for startup time currently, 500 ms on an i7, 5.2 sec on a Ras Pi 3.
This includes starting the app, loading a regular TS project, and initiating connection. Connection time varies greatly based on connection type.

https://www.youtube.com/watch?v=IL3xx04AHkk
Re-Read the post.... That is the dedicated dashboard application that starts and loads in 5.2 sec, not the full TS.
However, if it takes 45 sec to start TS on a Ras Pi3 after it has already booted, please read the user blogs. You clearly have something in bad shape... Even on the stock images it is way faster than that.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Blue Coupe
Helpful MS/Extra'er
Posts: 69
Joined: Mon Sep 07, 2015 8:00 am

Re: Speeding up startup time TunerStudio

Post by Blue Coupe »

When I first loaded TS last year the startup was quick on my old Dell Inspiron laptop, then there was an TS upgrade with notable higher res startup graphics and now I patiently wait for startup. I don't have times but it likely double to triple the previous startup time.
Is there a way to turn off nonessential items to speed the startup time.

I have no intent of buying another laptop as I have half a dozen licenses to manage and transfer. I tried to upgrade to an SSD drive unsuccessfully.

Tips would be appreciated.
Thanks
Erik
1988 Mustang, 357W Clevor, 12.5:1 pistons, 2bbl Cleveland heads, Street Boss intake converted to EFI, 30lb/hr injectors (Red Tops), MS3.57 Extra, Full Sequential Injection, 190L/hr pump, TFI, MSD 6AL, T5 transmission.
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Speeding up startup time TunerStudio

Post by LT401Vette »

My gut tells me it isn't the features making start up slow. TS lazy loads most things to prevent that from happening.
I have a 6 year old dual core atom processor that fires it up plenty fast.

My guess is there is some condition that makes some 1 particular action hang longer than desirable, then start up resumes. Recently someone sent a TunerStudioAppDebug.txt from a Mac for unrelated support issues, but in that we noticed it was hanging on the Internet check. In his case it looked like he did not have Internet access. In that case it should be a fast fail, but it looked like it was not. I don't have enough details yet, but it was an interesting input..
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Blue Coupe
Helpful MS/Extra'er
Posts: 69
Joined: Mon Sep 07, 2015 8:00 am

Re: Speeding up startup time TunerStudio

Post by Blue Coupe »

Thanks Phil,
I'll have to monitor it when I get a chance.
1988 Mustang, 357W Clevor, 12.5:1 pistons, 2bbl Cleveland heads, Street Boss intake converted to EFI, 30lb/hr injectors (Red Tops), MS3.57 Extra, Full Sequential Injection, 190L/hr pump, TFI, MSD 6AL, T5 transmission.
kikkegek
Master MS/Extra'er
Posts: 435
Joined: Thu Jan 14, 2016 12:14 am
Location: Netherlands, The Hague
Contact:

Re: Speeding up startup time TunerStudio

Post by kikkegek »

Sorry to bring up an fold topic. But whatever happened to the dedicated dashboard development?

Jochen
my project page, BBC 454 with LPG vapour injection:
my BBC 454 LPG vapour injection tuning story 8)

my Facebook projectpage:
My 1977 GMC C15 Suburban "Storm" 8)
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Speeding up startup time TunerStudio

Post by LT401Vette »

I'm sorry it has taken so long. It is real close to releasing as a beta, but other things keep getting in the way. :cry:
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
kikkegek
Master MS/Extra'er
Posts: 435
Joined: Thu Jan 14, 2016 12:14 am
Location: Netherlands, The Hague
Contact:

Re: Speeding up startup time TunerStudio

Post by kikkegek »

LT401Vette wrote:I'm sorry it has taken so long. It is real close to releasing as a beta, but other things keep getting in the way. :cry:
Hi Phil, thanks for the quick reply. How can I or other get on the BETA program? Do I need to apply somwhere?

Jochen
my project page, BBC 454 with LPG vapour injection:
my BBC 454 LPG vapour injection tuning story 8)

my Facebook projectpage:
My 1977 GMC C15 Suburban "Storm" 8)
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Speeding up startup time TunerStudio

Post by LT401Vette »

No need. Once it is ready, I will be making it available for all.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
kikkegek
Master MS/Extra'er
Posts: 435
Joined: Thu Jan 14, 2016 12:14 am
Location: Netherlands, The Hague
Contact:

Re: Speeding up startup time TunerStudio

Post by kikkegek »

Any news Phil?
my project page, BBC 454 with LPG vapour injection:
my BBC 454 LPG vapour injection tuning story 8)

my Facebook projectpage:
My 1977 GMC C15 Suburban "Storm" 8)
Post Reply