最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Enable or Disable WebGl - Stack Overflow

programmeradmin1浏览0评论

I would like to know if we can enable or disable WebGL manually in LightningChart JS. The question is because I don´t know if the library is actually printing series with WebGL or isn´t.

Thank you.

I would like to know if we can enable or disable WebGL manually in LightningChart JS. The question is because I don´t know if the library is actually printing series with WebGL or isn´t.

Thank you.

Share Improve this question edited Jan 27, 2020 at 11:17 Snekw 2,6201 gold badge17 silver badges24 bronze badges asked Jan 27, 2020 at 9:52 jcmjcm 451 silver badge6 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 3

There is no way to disable WebGL in the LightningChart JS library itself. It requires WebGL to work properly.

It is possible to disable WebGL from Chrome with --disable-3d-apis mand line switch. (source) When launching chrome with that switch, make sure to close all other chrome instances as otherwise the mand line switch will not take effect.

To disable WebGL in Firefox, open about:config page and search for webgl.disabled and set that flag to true.

When the 3D api's are disabled, LightningChart JS will fail to render and will throw an error.

发布评论

评论列表(0)

  1. 暂无评论