Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1248 - Plotting data is slower compared to previous version(s)
Summary: Plotting data is slower compared to previous version(s)
Status: IN_PROGRESS
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Chart (show other bugs)
Version: TeeChart.NET 2014 4.1.2014.12154
Hardware: PC Windows
: --- major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-29 08:32 EDT by sdgr
Modified: 2015-07-01 07:36 EDT (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sdgr 2015-06-29 08:32:18 EDT
Hi,
I have a plotwindow in which I draw data from a file. The series used for this is a normal Line series, but there are many data points in the file. Displaying the data is fast.

Now I have a simulation engine producing data for a second series. The data is drawn realtime and I remark that it takes extremely long before my second series gets drawn (updated).

I have attached a video of my application. In one plotwindow, I use FastLine series and the speed is very fast. In my second plotwindow, I use a Line series and this one is very slow. Even if I use just Point series, it's slow.

The orange series is the series which gets data from a file and is once read.
The blue series gets its data realtime from the simulation engine.

I use the latest version 4.1.2015.5142.
The strange thing is that I don't have this behavior with Line or Point series in the previous version 4.1.2014.12150.

Do you have any idea?
Thanks for your feedback.
Stefan.
Comment 2 christopher ireland 2015-07-01 07:36:32 EDT
Hello Stefan,

Running this code:

    private Stopwatch watch = new Stopwatch();

    private void button4_Click_1(object sender, EventArgs e)
    {
      tChart1.Clear();
      watch.Restart();
      tChart1.AfterDraw += TChart1_AfterDraw;
      tChart1.Series.Add(typeof(Line)).FillSampleValues(100000);

    }

    private void TChart1_AfterDraw(object sender, Graphics3D g)
    {
      watch.Stop();
      label1.Text = watch.ElapsedMilliseconds.ToString();
    }

and clicking the button fix times (in Release mode), I get the following results:

4.1.2015.05143:
1246
1082
1013
848
934

4.1.2014.12153:
1080
1082
608
976
1073

I do not see a significant difference here. Do you get similar results at your end?