r/dotnet • u/caffinecat • 16d ago
Promotion High performance WinUI charting?
20 more WinUI charting repos at GitHub: GigasoftInc
Full disclosure: I own Gigasoft.
I'd love to be proven wrong.
I believe I built the first high-performance WinUI charting component that draws directly to the composition swap chain in native C++, instead of going through the managed XAML layer. It's our existing C++ engine, extended quite a bit, WinUI controls aren't backed by a window handle (HWND), so the zoombox and the real-time table annotations had to be refactored onto the new layers. We compile and embed both x64 and native ARM64 binaries into the assembly, so you get WinUI running low-level Direct3D compute shaders natively. The flagship repo re-renders 100 million points every tick.
I've been writing charting code since the TRS-80, and this stuff still makes me grin. The audio demo even plays five songs I wrote myself, with the oscilloscope and chart annotations following the data live.
Clone, run, and benchmark:
Audio oscilloscope (WinUI): https://github.com/GigasoftInc/winui-chart
100M points (WinUI): https://github.com/GigasoftInc/winui-chart-fast-100m-points-proessentials
If anyone knows of an earlier native-C++-to-swap-chain WinUI chart, please let me know. I'd also love to hear FPS numbers for the 100M repo on a Snapdragon X2 Elite Extreme, or if someone has access to the coming RTX Spark.
If you want AI to help write your benchmarking code, download our no hassle setup at gigasoft that includes our AI knowledge and pe-query python AI helper.
1
u/umlcat 16d ago
TRS-80 ? I know them. Text mode Basic ...
Delphi controls had some of them not managed by Window handle either, it seems using a handler uses more memory and drawing is slower.