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.13k stars 262 forks source link

Doesn't work with Prince of Persia: Warrior Within #1285

Open zastrixarundell opened 3 months ago

zastrixarundell commented 3 months ago

Describe the bug Trying to run mangohud don't work with Prince of Persia: Warrior Within. Running with --dlsym doesn't help.

List relevant hardware/software information

MangoHud - A Vulkan overlay layer for monitoring FPS, temperatures, CPU/GPU load and more

      ID: org.freedesktop.Platform.VulkanLayer.MangoHud
     Ref: runtime/org.freedesktop.Platform.VulkanLayer.MangoHud/x86_64/23.08
    Arch: x86_64
  Branch: 23.08
 Version: 0.7.1
 License: MIT
  Origin: flathub

Collection: org.flathub.Stable Installation: system Installed: 33.8 MB

  Commit: 8f9b916108d1467bf357f268b48ae42a71d52c520bef4f680d1f6491ab5298cc
  Parent: 00bbf0a5c505cd0b7877f54564a292b03ab1484ec1f259f51284eb72ee0391f4
 Subject: patch: reset_fps_metrics: check that metrics is inited first (83059163)
    Date: 2024-03-12 01:14:47 +0000


**To Reproduce**
Steps to reproduce the behavior:
1. Start game, no mangohud

**Expected behavior**
Mangohud should be displayed.

**Screenshots**
![image](https://github.com/flightlessmango/MangoHud/assets/30195425/cdc278ca-5c5f-4b45-94d6-80466d4a3026)

**Additional context**
I've enabled DXVK_HUD just to see FPS and similar stuff.
flightlessmango commented 3 months ago

the game is 32bit, is there a separate mangohud package for 32bit in flatpak?

zastrixarundell commented 3 months ago

Most likely there isn't, at least I can't find it.

Hm, all of these issue (mosty not having gamescope) are really making think of moving to Bazzite instead of Kinoite.

I'll switch on my laptop and then check if the issue still persists.

zastrixarundell commented 3 months ago

Well after messing around, this game neither oblivion wanted to start out of the box and I don't have the will to see to debug it. I'll see to make an issue on repo for MangoHud fltatpak to setup 32bit dependencies.

zastrixarundell commented 3 months ago

Hm, I've actually started Fallout: New Vegas which is supposedly 32bit and MangoHud is working there, so it might be an issue with it being 32bit then?

flightlessmango commented 3 months ago

What proton version are you using for Prince of persia? I had to use 3.7-8 for it to start at all

zastrixarundell commented 3 months ago

Proton-GE 9.2, flatpak version of Steam as it didn't load some files on the native version but worked out of the box on flatpak.

jntesteves commented 3 months ago

@zastrixarundell On latest proton you're using the new steam-runtime and I think Valve has changed some paths inside the runtime that's been causing some trouble lately. Just to check if that might be the issue, could you please try this launch parameter:

MANGOHUD=1 LD_PRELOAD='/run/parent/usr/lib/extensions/vulkan/MangoHud/$LIB/libMangoHud_dlsym.so:/run/parent/usr/lib/extensions/vulkan/MangoHud/$LIB/libMangoHud_opengl.so' %command%

Edit: or this one:

MANGOHUD=1 LD_PRELOAD='/run/parent/usr/lib/extensions/vulkan/MangoHud/$LIB/libMangoHud.so:/run/parent/usr/lib/extensions/vulkan/MangoHud/$LIB/libMangoHud_dlsym.so:/run/parent/usr/lib/extensions/vulkan/MangoHud/$LIB/libMangoHud_opengl.so' %command%
zastrixarundell commented 3 months ago

Both of them gave a similar display issue: image

Although for the first set of options made the lines static, the other one made the lines intrerlace.