MangoHud icon indicating copy to clipboard operation
MangoHud copied to clipboard

Mangohud shows up only when playing Dusk in windowed mode

Open warriormaster12 opened this issue 6 years ago • 7 comments

Dusk is made with Unity so you might be able to reproduce this bug with any Unity game that uses Opengl.

Here are screenshots from the game: Screenshot_20200619_120346 Screenshot_20200619_120549

warriormaster12 avatar Jun 19 '20 09:06 warriormaster12

I will try to replicate this when I get back home.

Edit: Just bought the GOG version, so will be testing this asap.

Edit 2: Have just tested the GOG version of Dusk version 1.5 on Manjaro 20.0.3 XFCE with Lutris 0.5.7 and have no issues running MangoHud 0.4.1 fullscreen.

In "System options" --> "Environment variables" section, I added a Key of MANGOHUD_DLSYM with a Value of 1 as well as in the "Command prefix" section, I input mangohud and MangoHud appeared when the game ran in full screen 3/3 times.

ghost avatar Jul 21 '20 05:07 ghost

Avoiding opening a new issue: I see the same effect in Polybius [running in Proton with Steam] and the git head build of MangoHud. In windowed mode, the overlay renders; in fullscreen, it doesn't. (Regardless of MANGOHUD_DLSYM or other settings) [Some of mangohud's OpenGL injection is still working though - Polybius needs mangohud to apply opengl vsync, and that still works, even in fullscreen. CORRECTION - I just tested this, and Polybius apparently vsyncs by itself in fullscreen, so I can't confirm that any of mangohud is working in fullscreen mode.]

aoanla avatar Feb 13 '21 11:02 aoanla

I have this same issue with Enter the Gungeon, which also uses Unity and is a native Linux build. It displays fine when in windowed mode but not when full screen.

And I can confirm that MangoHud is working, it just doesn't show the HUD. I enabled Steam's built-in FPS display and I could toggle MangoHud's frame limiter and see that it was working correctly.

Also I can force the game to use Unity's Vulkan backend with the -force-vulkan option which allows MangoHud to display correctly in full screen mode... but then the game crashes once you get past the main menu.

svanheulen avatar Mar 16 '21 15:03 svanheulen

gl_bind_framebuffer = 0 probably helps.

jackun avatar Jul 08 '21 18:07 jackun

image works fine here without any tricks

flightlessmango avatar Jun 23 '23 18:06 flightlessmango

This issue seems to be relevant for Deus EX: GOTY Edition as well.

When launching with mangohud %command% via the Steam Flatpak, MangoHud is running but not shown, unless toggled in-game to windowed mode (see attached below). That in turn has other issues, as single-digit FPS and a blacked out game-window. The same behavior occurs when leaving launch options empty and enabling MangoHud via Steam Tinker Launch. Tested compatibility layers were forced to Proton Experimental and GE-Proton8-25.

It is clear MangoHud is running in the background when full-screen as FPS limiting (and toggling via LShift + F1) works. Additionally, MangoHud keeps printing to stdout: [2024-01-02 22:25:25.249] [MANGOHUD] [info] [gl_renderer.cpp:422] GL version: 4.6

Screenshot_2024-01-02_21-51-15

Setup [1] com.valvesoftware.Steam 1.0.0.78, org.freedesktop.Platform.VulkanLayer.MangoHud 0.7.0 [2] Linux host 6.6.8-arch1-1 https://github.com/flightlessmango/MangoHud/pull/1 SMP PREEMPT_DYNAMIC Thu, 21 Dec 2023 19:01:01 +0000 x86_64 GNU/Linux

flagel avatar Jan 02 '24 20:01 flagel

gl_bind_framebuffer = 0 _可能_有帮助。

cool

xjyuzh avatar Jul 02 '25 00:07 xjyuzh