Pre loader

Hardware-accrated rendering check in JavaScript

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums



Is there an equivalent JavaScript way to check if the hardware acceleration is enabled?

This snippet is from the WPF documentation.

Hardware-accelerated rendering check
if (sciChartSurface.RenderSurface.GetType() == typeof (VisualXcceleratorRenderSurface))
// Hardware-accelerated rendering is enabled!

If there is no hardware accelration in the browser available we do not want to render the SciChart surface.


  • You must to post comments

Hello, SciChart.js uses WebGL in its core. So to prevent an unexpected error, ideally, you can add an appropriate check and handling:

import { WebGlHelper } from "scichart";
// ...
const webGlSupport = WebGlHelper.getWebGlSupport()
if (webGlSupport === EWebGLSupport.NoWebGL) {
    // ...

Also, FYI, we have a related task in our backlog
It still requires some consideration on how it should be implemented.

Let us know if that’s what you were looking for, or otherwise, what use case you want to handle.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.