Open Sikeen opened 1 year ago
I have also tested the following versions:
and still with no success
PrefersNonDefaultGPU
is not advised as its behavior is poorly implemented across the board.
Prism behaves the same as Lutris and sets the right environment variables https://github.com/PrismLauncher/PrismLauncher/blob/ce5bb29c442cee3654c5f4287a999d5d6593032f/launcher/minecraft/MinecraftInstance.cpp#L520-L524
I've tested this on Prism 6.3 on my Laptop with a discrete Nvidia RTX GPU, and it works without a problem.
PrefersNonDefaultGPU
is not advised as its behavior is poorly implemented across the board.
i was aware, but as i was trying many different methods and options to try and solve this issue i did it anyway.
I have the same issue, I use prism flatpak
what's weird is when I set the global settings to use discrete GPU
the game do not launch and crash and if I only changed the instance
settings the game launches but not with discrete GPU
here are the logs https://pastebin.com/XjiKQN4i
Same issue here
What worked for me when I had a similar issue was creating my own prime-run:
alias prime-run='__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia'
then:
prime-run /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=prismlauncher org.prismlauncher.PrismLauncher
EDIT: now I just 'prime-run prismlauncher'
Or you can add javaw.exe to (Windows > Setting > Gaming > Game Mode > Graphics) and set High performance preference to it
^ this worked for me
There is simply no “use dedicated gpu” option
Or you can add javaw.exe to (Windows > Setting > Gaming > Game Mode > Graphics) and set High performance preference to it
This is a band-aid solution that works. Adding to the AMD software does not seem to work.
[image] ^ this worked for me
There is no "performance" tab at all on my launcher - I am on Windows
What worked for me when I had a similar issue was creating my own prime-run:
alias prime-run='__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia'
then:
prime-run /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=prismlauncher org.prismlauncher.PrismLauncher
EDIT: now I just 'prime-run prismlauncher'
I have the same Problem, and this worked for me.
PrefersNonDefaultGPU
is not advised as its behavior is poorly implemented across the board.Prism behaves the same as Lutris and sets the right environment variables
I've tested this on Prism 6.3 on my Laptop with a discrete Nvidia RTX GPU, and it works without a problem.
I notice you're setting the DRI_PRIME env var to 1, this in the case of my system is the integrated graphics with the dedicated GPU being 0, presumably this - in my case - is caused by switching from a CPU without integrated graphics to one that does have it. This may also be the case for OP.
A solution inf this is the case would be to:
(EDIT: looking at OP's inxi this is a me issue)
you can already set any env variables you want inside the Environment variables tab inside either instance settings( see photo) or the main settings
So for your case just copy the env from the file and change the values in that setting tab. The Use dedicated GPU
turn it off
After some testing neither DRI_PRIME=0 nor DRI_PRIME=1 ended up running the game with discrete graphics*, I disabled integrated graphics in the BIOS to resolve the issue.
*: F3 menu showed the integrated graphics in both cases
I notice you're setting the DRI_PRIME env var to 1, this in the case of my system is the integrated graphics with the dedicated GPU being 0, presumably this - in my case - is caused by switching from a CPU without integrated graphics to one that does have it.
the issue is that Mesa is naive and DRI_PRIME=1 means nothing more than "use the second GPU" regardless of that GPU is actually discrete or not.
I'm currently working on changing the implementation to use switcheroo-control instead and expose a list of all available GPUs to choose from.
I'm currently working on changing the implementation to use switcheroo-control instead and expose a list of all available GPUs to choose from.
Any progress on this?
Any progress on this?
Currently waiting on my current GPU PR to get reviewed and merged
Alright, maybe im not on the theme and i
m windows user, but can i do something to enable Perfomance tab in setting? I just dont have it and i think minecraft using integrated Intel card, though i have Nvidia card
I think so because Nvidium mod doesnt have any effect visually
@andrpetim the Performance Tab is useless on Windows. Please refer to https://github.com/PrismLauncher/PrismLauncher/issues/2832
Operating System
Linux
Version of Prism Launcher
Prism Launcher 6.3
Version of Qt
Qt 5.15.9
Description of bug
Prism launcher does not utilize the discrete (AMD) GPU, instead using the integrated (AMD)GPU even when setting use discrete GPU. i have also:
Put my PC in discrete GPU only mode from my OEM's hardware utilization software, and continued to have the setting on through the other experiments
I have used the official arch Minecraft launcher, which did use the discrete GPU.
Also played with the exact same mods and settings on windows, which DID use the dedicated gpu
Launched the launcher from Lutris and setting Lutris to also only use the discrete GPU in the settings(this usually works).
Set Prism to use feral gamemode and all native libraries.
I've also checked Flatseal for a setting to use the GPU.
Edited the .sh script in
/var/lib/flatpak/app/org.prismlauncher.PrismLauncher/current/active/export/bin/
to launch Prism with the default or none default GPU. using the commandPrefersNonDefaultGPU=true
andPrefersNonDefaultGPU=false
inxi:
Steps to reproduce
Steps to check whether or not Prism Launcher is using the dedicated GPU:
Suspected cause
Prism launcher not detecting the GPU
yeah that's pretty much all i could think of being the case, I've tried everything else
This issue is unique