SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components



I built a chart following your “series with metadata” example, and I use easy fallback… to switch from software and hardware rendering. Debugging the program I see my program entering in DirectXHeper class and choosing correctly from Direct3D10RenderSurface and HighSpeedRenderSurface (it depends from user preference).

I have a debug script that populates tha chart with random values. The result is shown in example1.png, every “candle” is built with 5 vertical numbers.

I notice a really strange issue. When using directx, the usage of memory grows a lot faster than software rendering. It becomes unstable after 1200 “candles” and with 1.5gb memory allocated.

I made a test, running the program for a while, the script generates about 900 “candles” with and without DirectX, as you can see in the 900CandlesWithDirectX.png and 900CandlesWithOutDirectX.png, the amount of memory is very different. It seems that with hardware acceleration the program doesn’t free the memory and it always continues to grow.

I immediately removed the check “3D acceleration”, but I would like to know how to solve this issue.

All the SharpDX.* are 2.6.3 version
Scichart.* Version 4.06.8482 Runtime v4.0.30319

here the definition of the chart:

    <s:SciChartSurface Name="sciChart" 
                    s:ThemeManager.Theme="{Binding ElementName=ChangeThemeCombo, Path=SelectedItem}"

                        <!--  Declare RenderableSeries  -->
                            <s:FastLineRenderableSeries x:Name="lineSeries"

                                  PaletteProvider="{StaticResource GainLossPaletteProvider}"
                                  s:CursorModifier.TooltipTemplate="{StaticResource CursorTooltipTemplate}"

                                    <seriesWithMetadata:AnnotatedPointMarker RenderPD="{Binding ElementName=lineSeries,Path=.}"  Width="5" Height="7" TextColor="White" ProgressBarColor="White"  AmountProgressBarFill="Orange" GainMarkerFill="LimeGreen" LossMarkerFill="Red" Stroke="White" StrokeThickness="1"  />



how can I understand where could the pitfall be ?
Thank you

  • You must to post comments

Hi Lorenzo,

The SciChart DirectX Renderer does use more memory than the software renderer, this is to be expected.

However… It should not use 1.5Gigabytes of memory. I would expect at most 200MBytes added to the memory footprint of the application as a one-off.

Can I ask you:

  1. Do you observe the same out of memory conditions in our WPF Examples Suite (which uses DirectX by default)? You can change the Renderer in the SciChart WPF Examples Suite by clicking the Gear icon and selecting Software or DirectX

  2. Are you able to provide us with a simple solution that reproduces out of memory conditions so our team can debug it? You can either attach it to your question & comment here, or email it to support and we will take a look.

Best regards,

  • You must to post comments

Thank you for your reply Andrew.

I’m preparing a test project for you and I’ll send it via email.


  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.