Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extremely poor performance with very good hardware #2750

Open
Omnifarious opened this issue Mar 21, 2024 · 11 comments
Open

Extremely poor performance with very good hardware #2750

Omnifarious opened this issue Mar 21, 2024 · 11 comments
Labels
Bug Something isn't working

Comments

@Omnifarious
Copy link

Description

On my Linux system with an ATI Radeon RX 7900 XTX, Ryzen 9 7950X3D, and 64 GiB of DDR5 RAM, I get less than 1 fps most of the time during games.

Expected Behaviour

Buttery smooth graphics

Actual Behaviour

Unplayable, as I said, < 1 fps most of the time.

Reproduction steps

Install BAR, start up BAR, join any skirmish, human players, machine players, doesn't matter.

Other

This computer is capable of 60 FPS at 3840x2160 for Sons of the Forest.

And yes, I am running BAR at 3840x2160.

My previous computer, with an older ATI card, an older Ryzen, and 64 GiB of slower memory worked fine.

@Omnifarious Omnifarious added the Bug Something isn't working label Mar 21, 2024
@Ruwetuin
Copy link
Member

Ruwetuin commented Mar 21, 2024

unfortunately AMD GPU with opengl on linux turns out it doesnt like how BAR does some UI rendering stuff

@6AKU66
Copy link
Contributor

6AKU66 commented Mar 21, 2024

unfortunately AMD GPU with opengl on linux turns out it doesnt like how BAR does some UI rendering stuff

Do we have some another reports with more details like logs?

@Omnifarious
Copy link
Author

Do we have some another reports with more details like logs?

I'm using the flatpak. What would I need to do to collect logs for you?

@6AKU66
Copy link
Contributor

6AKU66 commented Apr 4, 2024

I'm using the flatpak. What would I need to do to collect logs for you?

Right now, i'm busy with another stuff. Check if this problem is still present.
If still present: try apply /luaui disable ("/luaui reload" to revert it) and report if performance improved or not.

@p2004a
Copy link
Collaborator

p2004a commented Apr 4, 2024

Try outside of flatpak to rule out some libraries incompatibility or some unintended fallback to software rendering.

Overall, there is upload log button in laucnher, it grabs all we need and gives you url to share with us.

@thehobojoe
Copy link
Contributor

@Omnifarious is this issue still relevant?

@H1GHGuY
Copy link

H1GHGuY commented Apr 21, 2024

I have a similar issue with slightly lower-spec'd hardware. Running nvtop shows that BAR uses the integrated GPU... Any simple way to change the GPU it uses?

I'm using the flatpak version. The default config was actually fine, things started going south after I changed the graphics settings.

I resorted to disabling the iGPU in UEFI and things run smooth afterwards. It might still make sense to offer an option to select the GPU to use though.

@zercomnexus
Copy link

im running it on an older system with a Intel i7-3770K CPU @ 3.50GHz, and a 1060... im SURE that the xorg noveau driver is somehow to blame but... trust me ANY nvidia driver can't even launch this (believe me... i spent 8hrs and my OS nearly dying, trying to make any nvidia driver work, on multiple kubuntu variants).

i can't even play bar, at all, even when i finally launched the menu and first loaded into a game with friends, i was getting what felt to be mayyyybe 10fps tops. this was before tier 2

@Omnifarious
Copy link
Author

@thehobojoe - I've been periodically testing, and it hasn't gotten much better, except recently I've been getting 10 fps or so instead of 2-3.

@amsten
Copy link

amsten commented Sep 2, 2024

Same issue with similar hardware under fedora workstation. Running the game on integrated graphics gives 350-600 fps, while using the gpu give 7-15 FPS.

@ntorresalberto
Copy link

I don't know if related but I'm experiencing a similar problem on a Fedora 41 setup (amd cpu + dedicated amd gpu laptop).

Possible cause of the problem

I ran accross this discussion pointing to the PrefersNonDefaultGPU=true parameter in the .desktop file.
It seems that this parameter is a bit ambiguous in some systems and causes troubles: ref1, ref2.

Info I would need to test the parameter

On my system, there are multiple .desktop files associated with the flatpak launcher and I don't know if I can modify them in place to test the change. Can anyone help?

$ locate info.beyondallreason.bar.desktop
/var/lib/flatpak/app/info.beyondallreason.bar/x86_64/stable/8524b4dc776f7a5ef5c1fd123f35de498e47bce44571a371fdbabfcb312c92ec/export/share/applications/info.beyondallreason.bar.desktop
/var/lib/flatpak/app/info.beyondallreason.bar/x86_64/stable/8524b4dc776f7a5ef5c1fd123f35de498e47bce44571a371fdbabfcb312c92ec/files/share/applications/info.beyondallreason.bar.desktop
/var/lib/flatpak/exports/share/applications/info.beyondallreason.bar.desktop

What I tested

I also don't know how to ensure which gpu device is being used from inside the game (is there a way to inspect this?).
I did however, try to launch it with env DRI_PRIME=1 flatpak run info.beyondallreason.bar from a terminal and the performance was MUCH better.
This leads me to believe that the integrated gpu was being used before (when launched normally from the desktop file).
Could it be possible that, for some people with similar setups, the PrefersNonDefaultGPU is actually forcing the game to use the integrated gpu instead of the dedicated one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants