The 3D chart created by IsoSurface not fluent when rotating

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Elite
Newbie
Newbie
Posts: 11
Joined: Tue Dec 03, 2019 12:00 am

The 3D chart created by IsoSurface not fluent when rotating

Post by Elite » Wed Jun 17, 2020 8:59 am

I created a 3D chart using IsoSurface. It can run smoothly when 1000 points are loaded, but when I append to 3 million points, the rotating chart is not smooth. How should I optimize it.

The code is as follows

Code: Select all

IsoSurface isoSurface1 = new IsoSurface(tChart1.Chart);
isoSurface1.BandPen.Visible = false;
isoSurface1.IrregularGrid = true;
foreach (double time in dataMap.Keys)
{
    double[] values = dataMap[time];
    for (int z = startWavelength; z <= endWavelength; z++)
    {
        int index = z - startWavelength;
        isoSurface1.Add(time, values[index], z);
    }
}

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: The 3D chart created by IsoSurface not fluent when rotating

Post by Christopher » Wed Jun 17, 2020 4:44 pm

Elite wrote:
Wed Jun 17, 2020 8:59 am
I created a 3D chart using IsoSurface. It can run smoothly when 1000 points are loaded, but when I append to 3 million points, the rotating chart is not smooth. How should I optimize it.
Here I'm using this code:

Code: Select all

        private void InitializeChart()
        {
            _tChart.Aspect.View3D = true;
            _tChart.Aspect.Orthogonal = false;
            _tChart.Aspect.Zoom = 80;
            _tChart.Aspect.Chart3DPercent = 80;
            _tChart.Legend.Visible = false;
            var surface = new IsoSurface(_tChart.Chart);

            surface.BandPen.Visible = false;
            surface.FillSampleValues(20);

            _tChart.Tools.Add(typeof(Rotate));
        }
Note the removal of the BandPen, which may make a difference for you.

In general I would not expect GDI+ to be able to handle efficiently the rendering of so many objects; the kind of performance you're looking for is more likely to be found in systems with retained mode graphics rather than immediate mode graphics such as DirectX, OpenGL etc.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Elite
Newbie
Newbie
Posts: 11
Joined: Tue Dec 03, 2019 12:00 am

Re: The 3D chart created by IsoSurface not fluent when rotating

Post by Elite » Mon Sep 14, 2020 2:48 am

Hello, can TeeChart support retained mode? Do you have a better solution?

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: The 3D chart created by IsoSurface not fluent when rotating

Post by Christopher » Mon Sep 14, 2020 7:27 am

Elite wrote:
Mon Sep 14, 2020 2:48 am
Hello, can TeeChart support retained mode? Do you have a better solution?
Unfortunately we don't have a high-performance retained-mode graphics version of TeeChart at the moment, I'm afraid, and I don't believe we have plans to make one available in the near future.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply