News for hackers. Stuff that matters.
Re:Xray – An experimental next-generation Electron-based tex... by codedokode on Monday March 05, 2018 @08:57PM (#16526304)
Also, I noticed that it requires WebGL so without modern and supported by WebKit graphic card it won't work. Why is OpenGL necessary for a text editor? I don't understand.
Re:Xray – An experimental next-generation Electron-based tex... by bryanlarsen on Monday March 05, 2018 @09:19PM (#16526386)
I'm sure that software rendered webgl will be fine unless you're running a 5k monitor. It's just being used as a convenient texture glitter, the primary benefit is bypassing the DOM.
Re:Xray – An experimental next-generation Electron-based tex... by AlexMax on Monday March 05, 2018 @09:01PM (#16526321)
> Why is OpenGL necessary for a text editor?

Why not? Modern desktops are all hardware-accelerated anyway.

Re:Xray – An experimental next-generation Electron-based tex... by codedokode on Monday March 05, 2018 @10:25PM (#16526640)
Not all graphics hardware is supported by WebKit. For example, Intel 965 chipset doesn't support WebGL.
Re:Xray – An experimental next-generation Electron-based tex... by criddell on Monday March 05, 2018 @11:09PM (#16526796)
It looks like Intel hasn't updated the 965 drivers since before Windows 8, seven years ago. The group of people using that chipset is only getting smaller at this point.
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.
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.
Re:Xray – An experimental next-generation Electron-based tex... by gameswithgo on Monday March 05, 2018 @09:02PM (#16526323)
consider how many pixels a 5k monitor has.

try drawing a 5k monitor full of true type fonts in software sometime.

Re:Xray – An experimental next-generation Electron-based tex... by codedokode on Monday March 05, 2018 @10:14PM (#16526603)
Are 5k monitors that popular? Do they even exist? I think it makes sense to make editor available on maximum number of platforms.

Things like filling rectangles or scrolling have been hardware optimized for years on Windows without using any OpenGL and it works even on ancient graphic cards. So I think it might be a better technology for a text editor.

Re:Xray – An experimental next-generation Electron-based tex... by comex on Tuesday March 06, 2018 @12:00AM (#16526969)
> Are 5k monitors that popular? Do they even exist?

Yes - for example, Apple has been shipping 5K 27” displays in iMacs for three years now.

Re:Xray – An experimental next-generation Electron-based tex... by whywhywhywhy on Tuesday March 06, 2018 @09:52AM (#16529155)
Is the iMac popular?

You struggle to find a 5K display outside that one machine that Apple doesn't seem all that fussed about compared to their laptop and iOS offerings.

Re:Xray – An experimental next-generation Electron-based tex... by knrz on Monday March 05, 2018 @09:05PM (#16526332)
no need to be aggressive dude, op was just askin'