flightlessmango / MangoHud

A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more. Discord: https://discordapp.com/invite/Gj5YmBb
MIT License
6.45k stars 287 forks source link

[OpenGL]Mangohud doesn't work on Wolfenstein Old Blood with NV ( Windows only GL game ) #560

Open Leopard1907 opened 3 years ago

Leopard1907 commented 3 years ago

I tried on latest develop branch just now.

https://github.com/flightlessmango/MangoHud/commit/564c254eea3ba5f36ad9030fdcb7e387345d3a4d

Proton version used: 6.3-5

Mentioned game needs this in order to load Mangohud:

LD_PRELOAD=$LD_PRELOAD:/usr/lib/mangohud/lib/libMangoHud_dlsym.so:/usr/lib/mangohud/lib/libMangoHud.so %command%

On Intel ( Mesa ) Mangohud works, on NV driver it doesn't.

I've tested another game too, Wolfenstein New Order ( same engine). It also needs LD PRELOAD to load Mangohud but Mangohud works with both Intel ( Mesa ) and NV with it.

Leopard1907 commented 3 years ago

https://github.com/ValveSoftware/steam-runtime/issues/435#issuecomment-895455637

When these requirements met ( using beta branches of both SLR and Soldier runtimes) , LD PRELOAD workaround above is not needed anymore for Mangohud OpenGL to work with Proton OGL and SLR OGL Native games.

Not related to main issue here but adding it as a note.

Leopard1907 commented 3 years ago

https://drive.google.com/file/d/1w5k0N6j_pU2qqmPqIzZ-lnXnLVejaymX/view?usp=sharing

Here is an apitrace that reproduces the issue.

On Intel Mesa Mangohud works, on Nvidia prop it doesn't.

Tested against both latest master branch and latest release.

berglh commented 2 years ago

Affecting me also on Proton Experimental, 6.3-8 on NVIDIA proprietary 510.54, Ubuntu 21.10. Just finished playing Wolfenstein: The New Order without any changes on Proton Experimental, and MangoHud was working just fine. This is odd because I thought these were both running on the same engine.

Leopard1907 commented 2 years ago

Fwiw those preload stuff are not needed anymore after Steam Runtime changes but yes; Mangohud doesn't work with Nvidia on that game. Apitrace was attached a long time ago which reproduces the issue.

Frambooisier commented 1 year ago

Affecting me also on Proton Experimental, 6.3-8 on NVIDIA proprietary 510.54, Ubuntu 21.10. Just finished playing Wolfenstein: The New Order without any changes on Proton Experimental, and MangoHud was working just fine. This is odd because I thought these were both running on the same engine.

For me it's not working for Wolfenstein: The New Order, Im getting conflicting informations here, should it work or not?

Leopard1907 commented 1 year ago

@Frambooisier I didn't test recently but Wolfenstein Old Blood was the only problematic one here. New Order was fine for me on NV, Old Blood didn't work.

Possibilities are;