4
2
I've got Ubuntu 16.04
running in Windows 10 16251.0
as a Linux subsystem, and I've got Xming-mesa 6.9.0.31
installed.
I launch Xming using Xming :0 -multiwindow -clipboard
Then in my Ubuntu bash shell I type export DISPLAY=:0
and I can launch graphical applications in Xming.
However, I do not get accelerated graphics, so when I launch an editor (e.g. sudo spyder3
), I have to deal with the jerky scrolling and such that you get without acceleration.
How do I fix this? I'm sure my video card (AMD RX480 latest drivers) supports OpenGL, but for some reason I'm not activating it correctly.
export LIBGL_ALWAYS_INDIRECT=1
export DISPLAY=:0
sudo spyder3
No change :( – geofurb – 2017-08-08T20:04:40.450
@geofurb What if you try it with
glxgears
? – Aido – 2017-08-08T20:06:25.323How would I do that? – geofurb – 2017-08-08T20:06:55.377
glxgears
isn't realted tospyder3
, I want you to see ifLIBGL_ALWAYS_INDIRECT
impactsglxgears
. – Aido – 2017-08-08T20:07:59.890~1300FPS, but it jolts every so often. (Unless that's part of the intended behavior?) – geofurb – 2017-08-08T20:10:07.480
What's the difference when
LIBGL_ALWAYS_INDIRECT
is and isn't set. – Aido – 2017-08-08T20:10:59.473Similar performance after executing
export LIBGL_ALWAYS_INDIRECT=0
– geofurb – 2017-08-08T20:11:35.927Did you unset
LIBGL_ALWAYS_INDIRECT
before running it the first time? – Aido – 2017-08-08T20:12:56.100Negative; confirmed with
export -p
thatLIBGL_ALWAYS_INDIRECT
was set for the first run and unset for the second run. – geofurb – 2017-08-08T20:14:57.853I don't know, then. Sorry. – Aido – 2017-08-08T20:17:03.643
What's the reasoning there? – geofurb – 2017-08-09T02:40:38.710
@geofurb Oh I just remembered, it's an option in XMing as well, or at least VcXsrv has it. – Aido – 2017-08-09T04:40:04.633
So setting LIBGL_ALWAYS_INDIRECT=0 doesn't refert the framerate from glxgears to software accelerated speeds; HOWEVER, rebooting the machine restores it to software acceleration, and you get ~60fps instead of ~1300fps. What's going on that Spyder isn't benefiting from this graphical acceleration? – geofurb – 2017-08-10T00:16:00.553
Would XDMCP offer better performance or worse, since I'm rendering on the Windows computer? – geofurb – 2017-08-10T01:29:59.963
When I use this with
-wgl
it makes glxgears far slower. The only smooth animation is no-wgl
and noLIBGL_ALWAYS_INDIRECT
. – user541686 – 2019-04-18T23:42:03.570