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

mangohud doesn't open in opengl steam games #1524

Open
Toni500github opened this issue Jan 5, 2025 · 6 comments
Open

mangohud doesn't open in opengl steam games #1524

Toni500github opened this issue Jan 5, 2025 · 6 comments

Comments

@Toni500github
Copy link

Toni500github commented Jan 5, 2025

Do not report issue for old MangoHud versions

Describe the bug
When I try to open mangohud in games such as "counter strike 2", which uses vulkan, it works fine. But if I try to open it in games such as "counter strike: source" or "geometry dash", which uses opengl, it will print the error shim: Failed to load from ${ORIGIN}/libMangoHud_opengl.so and won't show up, when before the commit 14a6c6e it would show up.

I tried to use it in https://github.com/c2d7fa/opengl-cube and it shows up, with only mangohud ./main.

steam launch options:
CS2: mangohud %command% -novid -freq 240 +cl_interp_ratio 1 -threads 13
CSs: _NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 mangohud %command%
GD: mangohud %command%

List relevant hardware/software information

  • EndeavourOS x86_64
  • mangohud-git commit 14a6c6e (latest)
  • NVIDIA GeForce GTX 1650

To Reproduce

  1. open steam
  2. be in commit 14a6c6e
  3. have either geometry dash or counter strike source installed
  4. open the game
  5. try to open mangohud

Expected behavior
That it would show up in those games that doesn't work

Screenshots
the opengl cube with mangohud run with mangohud ./main
image

Additional context

@Etaash-mathamsetty
Copy link
Contributor

Etaash-mathamsetty commented Jan 5, 2025

this is an issue with the steam runtime, it has some sandboxing that doesn't let us load libmangohud_opengl.so from the system directories

@Toni500github
Copy link
Author

Toni500github commented Jan 5, 2025

is there any workaround? I really need that clock and fps measure 🥲
Or should I just go back to the stable version?

@flightlessmango
Copy link
Owner

Use stable version for now

@DonKatsu
Copy link

One way to work around this is to use Zink. But your mileage may vary whether the games in question have issues with that or not.
AMD/Intel: MESA_LOADER_DRIVER_OVERRIDE=zink
Nvidia: __GLX_VENDOR_LIBRARY_NAME=mesa MESA_LOADER_DRIVER_OVERRIDE=zink

@ojsl1

This comment has been minimized.

@Leopard1907
Copy link
Contributor

@ojsl1

1-) Shadow of Tomb Raider native is a Vulkan game.

2-) Issue is this, Feral Launcher+Mangohud combo prevents game from successfully launching.

#1406

As noted here.

So your issue is that what i linked, not this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants