Optimize an application speed

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #34242
    souch
    Participant

    Hi !

    My app is really slow (because of the AC controls i'm sure: if i start it witout the skinmanager activated, this is instant-speed, skinned i have a latency at page openning everywhere, sometimes really hard to deal with, like 3seconds delay!)

    I'm under AC 7.20 currently, can't change version everyday because my application is a modular one, and require me to recompil all the module (and provide a big big update to customers) at each version change.

    So, i try to improve what i can from my side, without big hope : I'm using AC since v4, and it look like slower and slower with the time :'(

    In my custom skin, under the Warnings button of the skinEditor, i have a lot of “Image bounds are wrong“, but i'm not able to fix it, can't find how.

    Do you have any idea ?

    #44328
    Vido
    Participant

    Try to update skin (*.acz), it's work..

    Also update version too..

    #44337
    Support
    Keymaster

    Hello

    Some reasons of slow drawing of forms :

    1. Using old skins !!! (*.asz), don't forget about internal skins too.

    2. Using own skins with not optimized sections (look warnings for skin in the ASkinEditor tool). Also, I can check and optimize your skin for free.

    3. Changing of controls SkinSection properties in application (SkinSection property must be changed carefully because some SkinSections in skin may be non-optimized for a fast drawing).

    4. Forms without TsSkinProvider component may be initialized slowly.

    5. Some third-party components used for managing of forms can be reason of slow form showing (example : http://www.alphaskin…?showtopic=5929)

    6. Form is slower if AlphaBlend or TransparentColor property is True

    7. Form is faster if standard controls are replaced by controls from AlphaControls package

    8. Disabled optimization of code (Project Options/Compiler/Optimization)

    Version 7 must be faster than version 6.

    I will think and I will add more items to this list. You can send me your skin now for checking and show a screenshot of your application please.

    BTW. Please describe a configuration of your PC.

    #44449
    souch
    Participant
    'Support' wrote:

    Hello

    Some reasons of slow forms drawing :

    1. Using old skins (*.asz), don't forget about internal skins too.

    2. Using own skins with not optimized sections (look warnings for skin in the ASkinEditor tool). Also, I can check and optimize your skin for free.

    3. Changing of controls SkinSection properties in application (SkinSection property must be changed carefully because some SkinSections in skin may be non-optimized for a fast drawing).

    4. Forms without TsSkinProvider component may be initialized slowly.

    Version 7 must be faster than version 6.

    I will think and I will add more items to this list. You can send me your skin now for checking and show a screenshot of your application please.

    BTW. Please describe a configuration of your PC.

    Hello,

    Thanks for your reply,

    1. yes, this skin was made with the 5.4 version if my memory is correct, but after each AC update, i reload the skin in the skineditor (and try to fix the warnings)

    2. yes, i have probably some issue here, but i look like that i was not able to fix it…

    3. dont think that is the case in my app, thanks for advice

    4. ok, i will check it too but i did a test with and without the skinprovider on a slow page, but without effect on loading duration.

    So, i will soon upgrade to 7.27 release, and depending on the result, i will maybe ask for your help aboutskin optimization :blush:

    thanks

    #44528
    Support
    Keymaster
    'souch' wrote:
    So, i will soon upgrade to 7.27 release, and depending on the result, i will maybe ask for your help aboutskin optimization :blush:

    You have any results after upgrading?

    #44637
    souch
    Participant
    'Support' wrote:

    You have any results after upgrading?

    Yes thanks, 7.29 is better than 7.20 for me, less issues and speed better too.

    -> Still here issue are on my last 3 posts in the troubleshooting board.

    http://www.alphaskins.com/forum/index.php?showtopic=5974

    http://www.alphaskins.com/forum/index.php?showtopic=5971

    I have take the time to understand and resolve all the warnings, i confirm that the impact can be huge !

    (a image out of bound on the itemmenu and to draw a big popup menu it take something like a second, once fixed, thats back to normal)

    I find a strange issue too, under a complex form with several tspanel, if one of the is not visible (because contain for example a panel aligned alTop and a grid align alClient), if the SkinSection used in this panel contain a texture, this is dramatically long to draw. So i's identified this case on my application and replace the skinsection by another one without texture, show of some form is passed from 2.5secondes to 0.6 seconds (!!).

    So yes, better, but the difference with the same app not skinned is big.

    #59782
    SzakiLaci
    Participant

    After 14 hours of work, I've finished my “Ultimate SpeedTest Demo” app.

    There is a XLS file inside …_src.zip to show and compare results.

    (Inside there are 2 sheets, one runned on a 12 year old XP laptop, and a modern Core i5)

    Exe files : [attachment=9427:OnShowSpeedTest_EXEs.zip]

    Source + Excel sheet: [attachment=9428:OnShowSpeedTest_src.zip]

    To reproduce the results at the same order I recommend to:

    1. Click [Component Tests] button first

    2. Than START

    3. Click [Component Tests] button again (to run it skinned)

    I've compiled it with 14.28 and 14.03 versions of AC, but could not do it with 2015 version (10.14) because it did not compile:

    201508 [Error] RLINK32: Unsupported 16bit resource in file “E:…AlphaSkinsDemosOnShowSpeedTestMain.dfm”

    ________________

    The columns of the Excel shows, that:

    – it has been ca 10% improvement of speed during the last 4 month

    But it also shows some bugs and strange things still unresolved:

    0.) sImage is not showing (BUG)

    See: #33

    1.) re-re-repainting of the form while showing should not occur

    See: 360ms – FormShow finished. [Skinned]

    2.) Showing a PageControl 100x takes 3000ms >> but changing between the 2 Sheet takes 9000+

    #22 (Shouldn't be max 6000ms ?)

    3.) Showing an sEdit 100x takes 2x so much time if skin is turned OFF :-O

    See: #11 vs skinned

    109ms – — Finished.

    62ms – — Finished. [Skinned]

    4.) 468ms – AcEndUpdate(False); >> should be 0ms !!! (BUG)

    5.) Clearing a Cashe of a VirtualImageList should not take 400ms each time (BUG)

    (Closing a form with VirtualImageList on it >> results the same I think )

    422ms – Small pic cache CLEARED.

    6.) #41 TEST: RadioGroup + CustomColor

    Should be same fast as unskinned! (140ms), not 1500ms

    Since it should look the same.

    7.) If you compare #51 + #52 + #53 #54,

    that's most strange time difference.

    Shouldn't be self-edited 'SkinSelection' be the most slow operation? Because it's 5 time faster!

    #59811
    SzakiLaci
    Participant

    Recompiled the speedTest Demo with 14.29 version.

    Everyone can now download the 3 EXE files and compare speed between releases.

    (By copying results into 1 Sheet helps a lot.)

    [attachment=9436:OnShowSpeedTest_14.29.exe]

    I did not see much difference between 14.28 vs. 14.29

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.