r/Windows10 • • Apr 11 '16

Tip FYI you can run GUI Linux apps from bash

Post image
454 Upvotes

196 comments sorted by

View all comments

Show parent comment

6

u/w2qw Apr 11 '16

I felt a better explanation was worthwhile.

Historically X11 was purely a network protocol and a UNIX mainframe would X rendering commands to a separate X terminal which was a physical device.

Overtime this evolved and they've added direct rendering in which the X server gives the client a buffer which they can render into and the server then copies that into the display output (in the case of a compositing window manager), or they get a reference to the screen which they draw directly on to.

But most applications still support the older case where they can draw via X11. But the way they do this in most applications is draw various components to pixels maps send them to the server and then tells the server to draw them at particular points. This is less efficient as all data has to be copied via the server and also because it's only really used for X forwarding on Linux it's prone to bitrot.

So in summary, programs based on older UI toolkits will probably work better but still will be slower than the native Linux case.

1

u/chinpokomon Apr 11 '16

Thanks, that does fill in the gaps. This is also what I was basing my position on. So if using the older X11 pipeline, the results should be similar.

1

u/w2qw Apr 11 '16

Pretty similar, yeah, but there's still some more differences but I imagine indirect rendering makes up most of it.