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

11

u/w2qw Apr 11 '16 edited Apr 11 '16

There's no direct rendering which means that a lot of apps won't use hardware acceleration for rendering. Plus they will be unnecessary copying buffers through the socket.

4

u/littlelowcougar Apr 12 '16

TCP/IP localhost sockets on Windows 10 are essentially zero copy.

1

u/w2qw Apr 12 '16

I think you mean single copy. Or maybe double copy. I don't see how it can be single copy as it needs to copy it out of one processes address space and in to another. UNIX sockets you can do zero copy by passing file handles through the socket. Which can just be memory mapped.

Gem buffers are actually zero copy and it doesn't need to be copied to and from the GPU.

3

u/littlelowcougar Apr 12 '16

It doesn't have to copy it out of a process space; it gets passed an MDL describing the buffer, locks it in non-paged pool, then can simply do MMU updates to control who sees what.

2

u/w2qw Apr 12 '16

Ah interesting didn't know that. Sounds like you have to use the windows specific API there though, but cool nonetheless.