Hello, I tried install this game but I didnt find it in repository (octopi). So I used flatpak version (I know that flatpak is not reommended).
Problem: I am not able to run it with dedicated nvidia GPU (proprietary driver).
(a bit lagging graphics and GreenWithEnvy doesnt show any load).
I tried edit launcher and add “run-prime” instead of “run” and no change, still running with intel graphics with small power. In Steam i can do this and dedicated GPU is working with mentioned command.
I tried also this: Plasma/Tips - KDE UserBase Wiki
But I have no item “discrete GPU” here.
Question 1: how to enforce flatpak appliccations to run with Nvidia (how to change launcher) … (I hope that my method to observe working of nvidia = GPU % item in GreenWithEnvy is correct)
Question 2: maybe I was searching wrong and there is some package with this game in garuda? (even if so, I would like to know also answer for question 1 for the future - and also i it is possible to explain me how to search for packages - octopi does not find “stunt”)
Thank you very much for your help and patience
EDIT:
With Wine the same situation - I am not able to enforce using discrete GPU - I dont know how to edit launcher. I tried give “run-prime” everywhere in it and nothing is working - or the launcher doesnt work or it works but game is working with integrated intel (max 30 fps in Counter Strike 1.6). There are columns “program”, “arguments” and “working path”.
EDIT2:
When I run this in console:
WINEPREFIX=/home/lenovo/.wine prime-run wine 'C:\users\lenovo\AppData\Roaming\Microsoft\Windows\Start Men
u\Programs\Counter-Strike.lnk'
it runs with NVIDIA correctly. But when I put into .desktop into “program column” value “prime-run wine”, launcher stop to work. So what I shoud write into CS.desktop setting to achieve to run it with above mentioned command which is working?
When I switch it to “run in terminal” and “dont close after ending”, I will get reason why the launcher is not working: “run-prime wine”: directory or file doesnt exist. So how to adjust launcher please?
EDIT3:
when I put into env variables “WINEPREFIX=/home/lenovo/.wine prime-run”, during saving the “prime-run” is shifted to “program” column and “wine” from program is shifted to arguments column. After that it launch with wine and probably also with prime-run but the launching is stopped after few rows. Despite of EDIT2 command it doesnt work, game is not launched.
EDIT4:
The similar I made with Stunt Rally - edited .desktop file, put:
Exec=prime-run /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=stuntrally org.tuxfamily.StuntRally
Also there already was:
PrefersNonDefaultGPU=true
After launching in terminal, everything looked ok, but in one moment it ended.
But despite to wine situation, here is not heping when I give it to terminal - the same result, game not launch with prime-run. No error written, just stop write outputs to terminal and thats it.
EDIT5:
I already know the difference between launching with launcher .desktop and launching immediatelly in terminal. When I run .desktop, the program will stop in one moment -
0024:fixme:exec:SHELL_execute flags ignored:
and when I run in terminal, in the absolutely same moment program stop, and I can see “lenovo@lenovo in ~ took 5s” and after that it CONTINUES (thats the difference!) with “C:\users\lenovo\Counter-Strike 1.6>start hl.exe -steam -game cstrike -noforcemaccel -noforcemparms” and game launches. So whats wrong with .desktop that this step will not come?
EDIT6:
Even if i am running with prime-run, it is writing:
MESA-INTEL: warning: Haswell Vulkan support is incomplete
But GreenWithEnvy shows that Nvidia GPU is loaded. But FPS is still not great (about 40)… does it mean that Nvidia is running through incomplete Vulkan? Or it is ok? I am affraid if steam dont use some better Vulkan, because I feel through steam are results bit better.
SOLUTION:
After 1000 trials I finaly got working .desktop for wine/CS16 - after edit with Kate, following form was working:
Exec=env WINEPREFIX=/home/lenovo/.wine prime-run wine 'C:\\users\\lenovo\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Counter-Strike.lnk'
Terminal=false
The same I made in .desktop for flatpak/stunt rally:
Exec=prime-run flatpak run --branch=stable --arch=x86_64 --command=stuntrally org.tuxfamily.StuntRally
Path=/usr/bin/
But here ISSUE REMAINS - after launching with "prime-run" it will crash:
EGL_VENDOR = NVIDIA
EGL_VERSION = 1.5
EGL_EXTENSIONS = (many)
Registering ResourceManager for type Texture
RenderSystem::_createRenderWindow "Stunt Rally", 1920x1080 fullscreen miscParams: FSAA=0 parentWindowHandle=119537666 title=Stunt Rally vsync=true
Then black blink screen and end.
When I delete “prime-run” from above mentioned .desktop formula, its running normally… But on Intel…