Ok, more info. (Lenovo Ideapad Gaming 3, Rayzen 5600H+AMD/ATI Radeon iGPU + Nvidia GTX 3050 4GB + 16 GB Ram, AVL 25, installed Nvidia proprietary drivers).
OpenGL compositing in Enlightment is set up as Glen described before.
Other plugins except LSP work with no issues. I managed to run more than 20 of instances with GUIs of different plugins with no issues. LSP also work (with OpenGL), as long as it’s not more than 3 of LSP GUI’s open at the same time. If i pull up 4th, it locks Ardour up, and i have to kill Ardours process to continue.
Then i noticed something, using this command.
glxinfo | grep “OpenGL version”
It showed AMD/ATI. Renderer actualy reverted back to iGPU.
So, since it’s actualy iGPU, that behaviour actualy made sense, cause, this AMD/ATI iGPU is exactly that much better compared to Intel iGPU’s i tried earlier (2GB vs 1GB), so it took that much more pressure to get LSP to missbehave.
Then i tried to update BIOS so i could set discrete Nvidia 3050 GPU to be used constantly.
No luck there. Even the latest Bios offers only 2 options:
1.) to use only iGPU
or
2.) the GPU’s to be switchable. No constant use option for discrete GPU in BIOS.
I found out by googling that i could make specific apps use discrete GPU in MX Linux with these commands:
export __NV_PRIME_RENDER_OFFLOAD=1;
export __GLX_VENDOR_LIBRARY_NAME=nvidia
And sure thing, i could make “some” changes using that in terminal, cause, now if i run:
glxinfo | grep “OpenGL version”
I get:
OpenGL version string: 4.6.0 NVIDIA 555.5
Cool. But, i can’t find a way to be sure that Ardour actualy use the discrete GPU(and i suspect it dosen’t), cause, if i try to run Ardour from terminal, after changing directory to Ardour’s, and applying forementioned commands, when i try to run Ardour(like in that example below) i get:
ljuba@mx:/opt/ARDOUR-8/bin
$ ./ardour-8.12.0
./ardour-8.12.0: error while loading shared libraries: libardourcp.so: cannot open shared object file: No such file or directory
…and yes, the file is already set to be executable…owner is root.
Maybe it’s something about syntax in this case, i realy don’t know.
That’s where i’m stuck right now.
Ideas?
P.S. Question. If i manage to run Ardour on discrete GPU using this method, will LSP surely also be rendered using discrete GPU? Will LSP inherit those commands/settings?
And…subquestion
If i do the project on this machine, and then move it to another machine which has trouble supporting OpenGL, will that project be normaly editable with Cairo?