SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
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.
I’m combining two examples. The fixed scrolling as in this example http://support.scichart.com/index.php?/Knowledgebase/Article/View/17223/37/how-to-have-a-fixed-scrolling-time-range-on-the-xaxis-that-works-with-modifiers and using the simplest solution of updating the visiblerange.
And the custom scrolling with many series as here: http://support.scichart.com/index.php?/Knowledgebase/Article/View/17258/43/creating-a-custom-scichartoverview-with-many-series-using-the-scrollbar-api
My chart data is updating at 100 ms and when I hold a handle of the scrollbar the chart starts flickering. Somehow I can’t seem to understand the source of this flickering.
In the Realtime Ticking Stock Charts a similar, though somewhat less, behavior is present. If I let the example run in realtime for a couple of minutes, then select a part of the data with the scrollbar and then hold the ‘end handle’ of the scrollbar for a while there sometimes is a similar flicker. I don’t really know how I trigger it, just let the chart run and change the visible range, release, hold the end handle, wait 10 seconds for the flicker, if it doesn’t come, repeat.
Anyone knows the source & solution?
The most common cause of flicker in SciChart WPF is the use of the DirectX Renderer plugin and some older video card hardware.
DirectX mode is enabled by default in the SciChart WPF Examples Suite, and must be enabled explictly in your own applications. If you witness flicker in your applications and are using DirectX, then try the steps below to resolve.
In the WPF Examples app, simply select the settings (Gear) icon, click ‘Enable Alternative Fill Source’.
If that does not work, try checking the second option ‘Enable Force wait for GPU’.
These two options use an alternative path for filling the WPF UIElement with DirectX content and can resolve flicker on older video hardware.
If you are seeing the flicker in your own application and are using DirectX, then you can apply the same flags programmatically. Use the following code somewhere in your app initialization.
// For 2D Charts with DirectX, enable UseAlternativeFillSource Direct3D10RenderSurface.UseAlternativeFillSource = true; // If that doesn't work, enable Force Wait for GPU Direct3D10RenderSurface.EnableForceWaitForGPU = true; // For 3D Charts, you can do the same Viewport3D.UseAlternativeFillSource = true; // And optionally, if the above does not work Viewport3D.ForceStallUntilGPUIsIdle = true;
These steps resolve the majority of problems with flicker in SciChart WPF.
If these helped, please remember to up-vote!
Please login first to submit.