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

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

1
0

Hi,

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" 
                    Grid.Row="0"
                    BorderThickness="0"
                    dirx:DirectXHelper.TryApplyDirectXRenderer="True"
                    s:ThemeManager.Theme="{Binding ElementName=ChangeThemeCombo, Path=SelectedItem}"
                    Padding="0"
                    VerticalAlignment="Stretch"
                    s:SciChartGroup.VerticalChartGroup="myCharts"
                    >

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

                                  StrokeThickness="2"
                                  PaletteProvider="{StaticResource GainLossPaletteProvider}"
                                  s:CursorModifier.TooltipTemplate="{StaticResource CursorTooltipTemplate}"
                                 >
                                <s:FastLineRenderableSeries.PointMarker>

                                    <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"  />
                                </s:FastLineRenderableSeries.PointMarker>

                            </s:FastLineRenderableSeries>

                        </s:SciChartSurface.RenderableSeries>

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

Images
  • You must to post comments
0
0

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,
Andrew

  • You must to post comments
0
0

Thank you for your reply Andrew.

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

Thanks

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.