+1

Oxyplot's performance boost via SharpDX not visible?

Ss Oi 7 years ago updated by ShannonZ 7 years ago 2

Hi, what I did was to start two VS2015 projects, prepare the libraries ready using sources of master in GitHub, then add PlotView for each project seprately from Oxyplot SharpDX Wpf and Oxyplot Wpf. At last I used the same data for each of plots.


this.PlotModel.Series.Add(new FunctionSeries(Math.Cos, 0,  100, 0.1, "cos(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Sin, 0,  100, 0.1, "sin(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Cos, 50, 150, 0.1, "cos(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Sin, 50, 150, 0.1, "sin(x)"));this.PlotModel.Series.Add(new FunctionSeries(Math.Cos, 0, 100, 0.1, "cos(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Sin, 0, 100, 0.1, "sin(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Cos, 50, 150, 0.1, "cos(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Sin, 50, 150, 0.1, "sin(x)"));this.PlotModel.Series.Add(new FunctionSeries(Math.Cos, 0, 100, 0.1, "cos(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Sin, 0, 100, 0.1, "sin(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Cos, 50, 150, 0.1, "cos(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Sin, 50, 150, 0.1, "sin(x)"));this.PlotModel.Series.Add(new FunctionSeries(Math.Cos, 0, 100, 0.1, "cos(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Sin, 0, 100, 0.1, "sin(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Cos, 50, 150, 0.1, "cos(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Sin, 50, 150, 0.1, "sin(x)"));this.PlotModel.Series.Add(new FunctionSeries(Math.Cos, 0, 100, 0.1, "cos(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Sin, 0, 100, 0.1, "sin(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Cos, 50, 150, 0.1, "cos(x)"));
this.PlotModel.Series.Add(new FunctionSeries(Math.Sin, 50, 150, 0.1, "sin(x)"));

To my surprise, there is actually no performance gain at all (see. http://discussion.oxyplot.org/topics/733-direct3d-10-renderer-fork-of-oxyplot-ive-done-it/). Draging the axes is in both programs very slow approx. ~1 fps, or better to say with SharpDX.wpf there are more wrong behaviors, eg. parts of lines that out of axes are still to see, and edges of axes with SharpDX are not fully filled than in normal Oxyplot.


So can someone advise me what did I do wrong or miss?


Thank you indeed.




+1

I'm seeing exactly the same. No apparent perfomance gain and very strange behavior & rendering.

Anybody any ideas? Help is appreciated.

Are you sure OxyPlot  is still alive?