Speed IOS

TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
Post Reply
jls
Newbie
Newbie
Posts: 56
Joined: Mon May 07, 2012 12:00 am
Location: Norway

Speed IOS

Post by jls » Wed Jun 13, 2012 10:23 am

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

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Speed IOS

Post by Yeray » Wed Jun 13, 2012 2:31 pm

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
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

jls
Newbie
Newbie
Posts: 56
Joined: Mon May 07, 2012 12:00 am
Location: Norway

Re: Speed IOS

Post by jls » Thu Jun 14, 2012 7:54 am

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

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Speed IOS

Post by Yeray » Fri Jun 15, 2012 11:55 am

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?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

jls
Newbie
Newbie
Posts: 56
Joined: Mon May 07, 2012 12:00 am
Location: Norway

Re: Speed IOS

Post by jls » Fri Jun 15, 2012 12:16 pm

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

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Speed IOS

Post by Yeray » Fri Jun 15, 2012 1:35 pm

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

jls
Newbie
Newbie
Posts: 56
Joined: Mon May 07, 2012 12:00 am
Location: Norway

Re: Speed IOS

Post by jls » Mon Jun 18, 2012 10:48 am

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;

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Speed IOS

Post by Sandra » Thu Jun 21, 2012 3:37 pm

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

X-Ray
Newbie
Newbie
Posts: 49
Joined: Fri Jan 27, 2012 12:00 am

Re: Speed IOS

Post by X-Ray » Fri Jun 22, 2012 6:47 am

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

jls
Newbie
Newbie
Posts: 56
Joined: Mon May 07, 2012 12:00 am
Location: Norway

Re: Speed IOS

Post by jls » Fri Jun 22, 2012 7:54 am

QC

106610

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Speed IOS

Post by Sandra » Fri Jun 22, 2012 9:49 am

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply