Re:Xray – An experimental next-generation Electron-based tex...
by stouset on Monday March 05, 2018 @09:02PM
(#16526324)
Hardware acceleration of rendering is more energy-efficient and less resource intensive than CPU-based software rendering.
[ Parent
| on HN ]
Re:Xray – An experimental next-generation Electron-based tex...
by kjksf on Monday March 05, 2018 @09:18PM
(#16526380)
The way XRay render text is more compositing than rendering.
They will render text to a bitmap using HTML canvas and then use that as a texture for GPU.
GPU will be compositing those bitmaps, it won't actually be rendering text.
Re:Xray – An experimental next-generation Electron-based tex...
by codedokode on Monday March 05, 2018 @10:26PM
(#16526650)
Is it really so? Can OpenGL update only a small part of a framebuffer (for example, when a single letter is typed) or will it rerender the whole text?
Re:Xray – An experimental next-generation Electron-based tex...
by zaarn on Tuesday March 06, 2018 @03:20AM
(#16527617)
Depends on how you render.
I've written a OpenGL engine for a university course that use partial frame updates to reduce the number of redraws per frame.
IIRC the partial rerender variant was about 3 times faster than the full render.
Re:Xray – An experimental next-generation Electron-based tex...
by bitcoinboi9 on Tuesday March 06, 2018 @03:20AM
(#16527618)
If done in a smart way, of course you can. Similar thing with canvas. If letter/word spacing depends on that character, then you'd probably need to rerender more stuff.