Page 1 of 1
Speed IOS
Posted: Wed Jun 13, 2012 10:23 am
by 16562340
Hello
Series is created like this
chart.addseries(TBarSeries)
chart.series[0].fillsamplevalues(9)
First:
I get the same error as in
http://www.teechart.net/support/viewtop ... 17&t=13316
I tried to do this
http://qc.embarcadero.com/wc/qcmain.aspx?d=103976
but I don't think my changes is used by the compiler.
Must I do something else than modify the file?
Can the modified file be located in the project folder?
Main Issue:
but the main issue is the speed on my ipad/iphone
everything is slow (5+ seconds)
loading, zooming, rotation
any idea whats wrong?
using XE2 update 4 with fix
Jørgen
Re: Speed IOS
Posted: Wed Jun 13, 2012 2:31 pm
by yeray
Hi Jørgen,
jls wrote:First:
I get the same error as in
viewtopic.php?f=17&t=13316
I tried to do this
http://qc.embarcadero.com/wc/qcmain.aspx?d=103976
but I don't think my changes is used by the compiler.
Must I do something else than modify the file?
Can the modified file be located in the project folder?
Correcting these functions in the
FMX_Types_FPC_Impl.inc file from "\Embarcadero\RAD Studio\9.0\source\fmi" should be enough:
Code: Select all
function TRectF.GetBottomRight: TPointF;
begin
//Result := TPointF.Create(Bottom, Right); //Act
Result := TPointF.Create(Right, Bottom); //Exp
end;
Code: Select all
function TRectF.GetTopLeft: TPointF;
begin
//Result := TPointF.Create(Top, Left); //Act
Result := TPointF.Create(Left,Top); //Exp
end;
jls wrote:Main Issue:
but the main issue is the speed on my ipad/iphone
everything is slow (5+ seconds)
loading, zooming, rotation
any idea whats wrong?
using XE2 update 4 with fix
I'd suggest you to take a look at this thread, where we discussed about the speed on iOS
http://www.teechart.net/support/viewtop ... 17&t=13120
Re: Speed IOS
Posted: Thu Jun 14, 2012 7:54 am
by 16562340
Hello
My problem is simple to reproduce
procedure TForm1.FormCreate(Sender: TObject);
begin
FChart := TChart.Create(Self);
FChart.AddSeries(TBarSeries);
// FChart.Align := TAlignLayout.alClient;
FChart.Width := 400;
FChart.Height := 400;
FChart.Series[0].FillSampleValues(9);
FChart.Parent := self;
end;
The problem is then I try to rotate the device.
It works OK on IPad simulator
but on the IPad it is very slow 5 sec.
It rotates fast, but the scaling after rotation uses 5 sec.
(still have problems with the bug fix, added this to a new posting)
Jørgen
Re: Speed IOS
Posted: Fri Jun 15, 2012 11:55 am
by yeray
Hi Jørgen,
As you can read
here, we are aware that the speed on the real devices is slower.
Have you tried the tips on the last message?
Re: Speed IOS
Posted: Fri Jun 15, 2012 12:16 pm
by 16562340
I have not tried it, will do this
How much better should it be?
Do you think you will solve the performance issue?
If so, do you have an estimated date?
Jørgen
Re: Speed IOS
Posted: Fri Jun 15, 2012 1:35 pm
by yeray
Hi Jørgen,
jls wrote:I have not tried it, will do this
We'll be pleased to hear about your experience.
jls wrote:How much better should it be?
As Narcís said,
Narcís wrote:It helped slightly increasing performance here.
I'm afraid we haven't quantified it.
jls wrote:Do you think you will solve the performance issue?
If so, do you have an estimated date?
I hope so! As you've noticed, taking some seconds for each repaint it's too much. But as you'll understand, I can't tell you how the improvements will change the performance before finding them.
I can't tell you a date either.
Re: Speed IOS
Posted: Mon Jun 18, 2012 10:48 am
by 16562340
It did not help
It takes 20 seconds to rotate the chart on my IPad3.
Are you able to reproduce this?
Jørgen
program chart2;
uses
FMX_Forms,
Unit1 in 'Unit1.pas' {Form1},
FMX_Types;
{$R *.res}
begin
GlobalUseHWEffects:=False;
GlobalDisableFocusEffect:=True;
GlobalUseDirect2D:=False;
GlobalUseDirect2DSoftware:=True;
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
procedure TForm1.FormCreate(Sender: TObject);
begin
FChart := TChart.Create(Self);
FChart.AddSeries(TBarSeries);
FChart.Align := TAlignLayout.alClient;
FChart.Width := 400;
FChart.Height := 400;
FChart.Series[0].FillSampleValues(9);
FChart.Parent := self;
end;
Re: Speed IOS
Posted: Thu Jun 21, 2012 3:37 pm
by 10050769
Hello jls,
I think it is not a problem directly of TeeChart, so is a problem mostly of the behavior of Firemonkey in the iOS. We find many links that talk about this slowness of Firemonkey projects in iOs:
https://forums.embarcadero.com/message. ... 2&tstart=0
https://newsgroups.embarcadero.com/mess ... 3&tstart=0
Also, the Ipad is slower than Mac, so it get worse the situation.
I am sorry, but we cannot do any thing until developers of Firmonkey don't improve its performance in iOs.
Thanks,
Re: Speed IOS
Posted: Fri Jun 22, 2012 6:47 am
by 16561419
Hello Sandra,
did you put an example application as bug report into QC?
It would be nice to have it there and trace if something is done on this important "feature".
best regards,
X-Ray
Re: Speed IOS
Posted: Fri Jun 22, 2012 7:54 am
by 16562340
QC
106610
Re: Speed IOS
Posted: Fri Jun 22, 2012 9:49 am
by 10050769
Hello X-Ray and jls,
Firmonkey is very new, but seems announcements of Embarcadero about XE3 improve this type of problems. We should be waited Embarcadero publish beta version of XE3, to check it.
Thanks,