Menu

App Startup Slow

justapps
2013-08-27
2013-08-29
  • justapps

    justapps - 2013-08-27

    Using native controls such as D.P.F. offers great performance once the app is launched even on an older device such as an iPhone 4, but the start up is still slow. I'm sure it is due to having to use the Firemonkey framework. Does anyone know of a way to speed up the start up time of an app when only D.P.F. controls are used and no visual Firemonkey controls are used?

     
  • Tyson Stephen

    Tyson Stephen - 2013-08-27

    I noticed this also (Iphone 3), I have many forms, The time it takes to create the forms must be the issue. I use DPFUIView's to show the form and slid them in an out, works quite fast, but like you say the initial loading of the form takes the time. I have made sure that my form does not draw like the tip in the install instructions, but it still takes a while and I'm not done yet.

    Not sure if there are any time savings if one was to use FRAMES instead of forms... i'll have to experiment with this.

     
  • justapps

    justapps - 2013-08-27

    I think it is still slow to start even with just one form. Maybe the only way to fix this is to figure out the minimum code required from the Firemonkey framework to use D.P.F. only.

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2013-08-27

    Hi, justapps
    Do you follow the History.txt tips (override TForm.PaintRects) ?
    This can be speed up loading time.
    we can't separate FM controls with Native Controls, these two elements are combined.

    Hi Tyson

    The frame creating time lower than a form, you better to use frame instead of forms.

    Regards

     
  • justapps

    justapps - 2013-08-28

    I built an entirely new user on my Mac and installed XCode and setup all my certs again. I am making sure to add the code that you suggested the apps are launching in an acceptable time now. Thanks!

     
  • Fenistil

    Fenistil - 2013-08-28

    Does anyone use Frames now? With the lastest code (svn) I can't run anything that using Frames on device. In simulator everything works fine, but when I start the app on an iPhone 4 It quits after loading. I got the followings in the console (XCode / Window / Organizer):

    iOSFrame[2120] <Warning>: TDPFiOSBaseControl.Create: TDPFUIView
    iOSFrame[2120] <Warning>: TDPFiOSBaseControl.ChangeParent
    iOSFrame[2120] <Warning>: TDPFiOSBaseControl.Destroy: DPFUIView1
    (UIKitApplication:iOSFrame[0x8f2f][2120]) <Error>: (UIKitApplication:iOSFrame[0x8f2f]) Exited with code: 1
    

    Can somebody try the Frames Demo on device?

    Thanks

     

    Last edit: Fenistil 2013-08-28
    • Fenistil

      Fenistil - 2013-08-28

      My last message wasn't accurate. I did some testing, and It seems that I can't run any app on iPhone compiled with the last source. I restarted the iPhone, I killed all the apps, refresh the Framework files in Delphi, check for latest XCode but nothing. Then I reinstalled 3.0.0, and everything works fine.

      Please verify it.

       
      • Kaarigar

        Kaarigar - 2013-08-29

        I second that. I tried a few demo apps - they all crash when launched on the device. I will create a bug ticket.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.