-
Notifications
You must be signed in to change notification settings - Fork 981
Description
Question: ScottPlot5 skiasharp is terribly slow on Linux (Debian 12 (linux-x64), i3-10105, Intel UHD Graphics 630).
ScottPlot.Avalonia Version: 5.0.21
SkiaSharp.NativeAssets.Linux.NoDependencies Version: 2.88.7
Avalonia Version: 11.0.6
Code Sample:
<ScottPlot:AvaPlot Name="avaPlot1"/> avaPlot1.Plot.Title("UDP data graf");
avaPlot1.Plot.XLabel("Time [s]");
avaPlot1.Plot.ShowLegend();
// create a timer to update the GUI
_renderTimer = new DispatcherTimer();
_renderTimer.Interval = TimeSpan.FromMilliseconds(20);
_renderTimer.Tick += Render;
_renderTimer.Start();void Render(object sender, EventArgs e) {
avaPlot1.Refresh();
}When I use ScottPlot4 or ScottPlot5 on Windows then the UI page with the Scottplot plot performance is smooth and fast. The Scottplot5 is even faster than Scottplot4 on Windows. When I use the same on Linux (same machine) then the application is terribly slow, regardless the refreshing render time period. Scottplot4 performance is satisfactory on Linux.
The rendering time (FPS) get by dobble-click in graph is more than 100 times worse on Linux.
- I am using dotnet 6.0.
Build command:dotnet publish -r linux-x64 -c Debug -p:publishsinglefile=true --self-contained true
The following packages libfreetype6, libfontconfig1 and fontconfig have been installed.
I am curious whether the Scottplot5 is using the GPU acceleration or what I am doing wrong.
Thank you for support.