Page 1 of 1

The 3D chart created by IsoSurface not fluent when rotating

Posted: Wed Jun 17, 2020 8:59 am
by 15687497
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);
    }
}

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

Posted: Wed Jun 17, 2020 4:44 pm
by Christopher
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.

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

Posted: Mon Sep 14, 2020 2:48 am
by 15687497
Hello, can TeeChart support retained mode? Do you have a better solution?

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

Posted: Mon Sep 14, 2020 7:27 am
by Christopher
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.