Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8051993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:26:29+00:00 2026-06-05T07:26:29+00:00

I am using Delphi XE2 with update 4 hotfix 1 My default FMX app

  • 0

I am using Delphi XE2 with update 4 hotfix 1

My default FMX app is stating very slow and on event it is freezing for a while. Eg: when i click on a button, the whole application freezes for some seconds(but only for the first execution of that event). So i thought it might be a GPU problem and edited my default Dpr file as ;

uses
  FMX.Forms,  fmx.Types,..

{$R *.res}

begin
  Application.Initialize;

  GlobalUseHWEffects := False   ;
  GlobalUseDirect2D := False  ;
  GlobalUseDirect2DSoftware := False    ;
  GlobalUseGDIPlusClearType := True    ;
  GlobalDisableFocusEffect := True   ;

  Application.CreateForm(...);
  Application.Run;
end.

Now it works as i expected without any problem, but the CPU usage is as previous(25% when moving mouse)

Then i modified my code as

  GlobalUseHWEffects := true  ;
  GlobalUseDirect2D := False  ;
  GlobalUseDirect2DSoftware := False    ;
  GlobalUseGDIPlusClearType := True    ;
  GlobalDisableFocusEffect := True   ;

Now everything is working smooth , only a small delay in statup time and CPU usage is very low (0 – 2 %).(that’s why i need Firemonkey)

now all the controls are working as expected except Menubar, above settings are not applied to menubar and it is working with default behavior(whole app freezes for some seconds).

What can i do to over come this problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T07:26:30+00:00Added an answer on June 5, 2026 at 7:26 am

    The real problem was with some firemonkey Effects and Firemonkeys default settings

    default GlobalUseDirect2D = true while GlobalUseHWEffects := true is the real cause for performance issue, enabling both is using both CPU and GPU in my machine.So make one of them to false. I recommend you to do GlobalUseDirect2D = false and GlobalUseHWEffects := true for less usage of CPU.

    And now you will be also able to get improved fonts (best ever firemonkey can generate)

    Not all the customers will have high end Graphic GPUs

    I am using an Intel Mobile graphic chip, so i don’t think my one will have all the capabilities to support all firemonkey effects. following the code and comment can be seen in FMX.Types

    // On low-end hardware or mobile bitmap effects are slowly
      GlobalDisableFocusEffect: Boolean = False;
    

    but i can’t understand why they have made it false by default.(so enable and disable depends on client GPU capabilities)

    by GlobalDisableFocusEffect you will no more able to use Effects (eg: outergloweffect )…. but again this statement is still no more true….

    by GlobalDisableFocusEffect not all the effects are disabled,

    for example

    1. Tinnergloweffect in button style in windows style is the reason for freezing
    2. Tinnergloweffect in headeritemstyle in Dark style is the reason freezing.

    and there may be tons of example…

    So in my scenario i was forced to remove all effects form the style.., Blend , Dark styles are working much better because they use less TEffects (?) ,but now i am having a better GUI with better performance (I feel Blend and Dark styles look cool than native like UIs )

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Delphi XE2 on Win 7 64 bit creating a 32 bit app... In
I am trying to write an iPhone app using Delphi XE2 / FireMonkey and
Using Delphi XE2 update 3 or update 4 on Win7 64 bit. Calling enumwindows
What's the workflow for creating an iOS app using Delphi-XE2. This is really a
I'm using Delphi XE2 Update 3. Update 4 is not compatible with some of
I have developed an database application with Delphi XE2 using an Access DB, now
I'm using Delphi 7 Personal. To access MySQL database I'm using libmysql.dll + very
While browsing System.Zip (Delphi XE2) to see how it works, I found this function:
We are porting our app to Delphi XE2 from Delphi 6. Problem is, the
Yesterday I installed Delphi XE2 using the download option, so I guess the installed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.