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.