atom-archive / xray

An experimental next-generation Electron-based text editor
MIT License
8.48k stars 235 forks source link

DOM Fallback Implementation. #99

Closed ZehCnaS34 closed 6 years ago

ZehCnaS34 commented 6 years ago

Hi,

I’m using relatively old and obscure hardware (AMD A8-3850 APU), and have noticed that webgl2 is not available in electron/chrome. In the future, will Xray support some sort of DOM fallback for text_plane.js? If not, how difficult would it be to utilize Atom’s current text-editor*.js implementation to create a fallback DOMRenderer class for TextPlane?

as-cii commented 6 years ago

Hello @ZehCnaS34, thanks for this question. Our current plan is to implement a WebGL1 fallback when WebGL2 isn't available. WebGL1 support seems to be pretty widespread and we should first consider that before investing time in a DOM implementation which, based on our experience on Atom, would be much slower.

According to https://caniuse.com/#feat=webgl, support for WebGL1 on desktop machines is almost 99% (WebGL2, by comparison, is supported only on ~75% of the tracked desktop machines), so I think it's very likely it would be supported on your machine as well.