primusrun is not using discrete GPU with paraview
with a builded ParaView (5.6 or master), on a laptop with a discrete nvidia card and an integrated intel chipset, the following behavior can be observed :
./bin/paraview
Help -> About -> OpenGL : Mesa...
optirun ./bin/paraview
Help -> About -> OpenGL : Nvidia...
primusrun ./bin/paraview
Help -> About -> OpenGL : Mesa
The last part is unexepected
With ParaView 5.6 release, this behavior does not appear.
This behavior is not only a reporting error but a performance drop with complex rendering can also be observed.
glxinfo and glxgears do not show this behavior.
On ArchLinux, with nvidia 418.56, bumblebee 3.2.1, primus 20151110
Edited by Mathieu Westphal (Kitware)