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.37k stars 283 forks source link

Mangohud changes position depending on what happens in the game #97

Closed HughJass closed 4 years ago

HughJass commented 4 years ago

As the tittle says. Depending on what am I doing in the game the mangohud window is changing position. Here's a video showing it. https://www.youtube.com/watch?v=cJSPG1dnfio And here's log from launching the game. This is a DirectX7 game btw. It has a fan-made patch/hack for dx11 but I can't get it to work with DXVK yet.

[oxi@oxi-pc System]$ mangohud.x86 wine Gothic2.exe
ERROR: ld.so: object 'libMangoHud.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object 'libMangoHud.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object 'libMangoHud.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object 'libMangoHud.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object 'libMangoHud.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object 'libMangoHud.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object 'libMangoHud.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object 'libMangoHud.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
0024:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\WineUsd": c0000142
000f:fixme:service:scmdatabase_autostart_services Auto-start service L"WineUsd" failed to start: 1114
ERROR: ld.so: object 'libMangoHud.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
0009:fixme:ntdll:EtwEventRegister ({5eec90ab-c022-44b2-a5dd-fd716a222a15}, 0x10001123, 0x10018020, 0x10018038) stub.
0009:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0x10014fb8, 43) stub
skipping config: /usr/bin/MangoHud.conf [ not found ]
skipping config: /home/oxi/.config/MangoHud/wine-preloader.conf [ not found ]
parsing config: /home/oxi/.config/MangoHud/MangoHud.conf [ ok ]
GL version: 4.6 (Compatibility Profile) Mesa 20.1.0-devel (git-b93a195225)
Version: 4.6
GL version: 4.6 (Compatibility Profile) Mesa 20.1.0-devel (git-b93a195225)
Version: 4.6
0009:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0009:fixme:ddraw:DirectDrawEnumerateExA flags 0x00000004 not handled
GL version: 4.6 (Compatibility Profile) Mesa 20.1.0-devel (git-b93a195225)
Version: 4.6
GL version: 4.6 (Compatibility Profile) Mesa 20.1.0-devel (git-b93a195225)
Version: 4.6
GL version: 4.6 (Core Profile) Mesa 20.1.0-devel (git-b93a195225)
Version: 4.6
GL version: 4.6 (Compatibility Profile) Mesa 20.1.0-devel (git-b93a195225)
Version: 4.6
0009:fixme:ddraw:ddraw7_Initialize Ignoring guid {aeb2cdd4-6e41-43ea-941c-8361cc760781}.
GL version: 4.6 (Core Profile) Mesa 20.1.0-devel (git-b93a195225)
Version: 4.6
0009:fixme:ddraw:DirectDrawEnumerateExA flags 0x00000004 not handled
GL version: 4.6 (Compatibility Profile) Mesa 20.1.0-devel (git-b93a195225)
Version: 4.6
GL version: 4.6 (Compatibility Profile) Mesa 20.1.0-devel (git-b93a195225)
Version: 4.6
GL version: 4.6 (Core Profile) Mesa 20.1.0-devel (git-b93a195225)
Version: 4.6
0009:fixme:ddraw:DirectDrawEnumerateExA flags 0x00000006 not handled
GL version: 4.6 (Compatibility Profile) Mesa 20.1.0-devel (git-b93a195225)
Version: 4.6
GL version: 4.6 (Compatibility Profile) Mesa 20.1.0-devel (git-b93a195225)
Version: 4.6
GL version: 4.6 (Core Profile) Mesa 20.1.0-devel (git-b93a195225)
Version: 4.6
GL version: 4.6 (Core Profile) Mesa 20.1.0-devel (git-b93a195225)
Version: 4.6
0009:fixme:ddraw:ddraw7_Initialize Ignoring guid {aeb2cdd4-6e41-43ea-941c-8361cc760781}.
GL version: 4.6 (Core Profile) Mesa 20.1.0-devel (git-b93a195225)
Version: 4.6
GL version: 4.6 (Core Profile) Mesa 20.1.0-devel (git-b93a195225)
Version: 4.6
GL version: 4.6 (Compatibility Profile) Mesa 20.1.0-devel (git-b93a195225)
Version: 4.6
GL version: 4.6 (Core Profile) Mesa 20.1.0-devel (git-b93a195225)
Version: 4.6
GL version: 4.6 (Core Profile) Mesa 20.1.0-devel (git-b93a195225)
Version: 4.6
GL version: 4.6 (Core Profile) Mesa 20.1.0-devel (git-b93a195225)
Version: 4.6
GL version: 4.6 (Core Profile) Mesa 20.1.0-devel (git-b93a195225)
Version: 4.6
0009:fixme:ddraw:ddraw7_WaitForVerticalBlank iface 076FC670, flags 0x1, event 00000000 stub!
0009:fixme:ddraw:ddraw_surface7_Flip Ignoring flags 0x1.
0009:err:dmloader:IDirectMusicLoaderImpl_SetObject : could not attach stream to file L"C:\\windows\\system32\\drivers\\gm.dls", make sure it exists
0009:err:winediag:MIDIMAP_drvOpen No software synthesizer midi port found, Midi sound output probably won't work.
0009:fixme:dmsynth:IDirectMusicSynth8Impl_SetMasterClock (077DC860)->(077DC728): stub
0009:fixme:dmsynth:IDirectMusicSynthSinkImpl_SetMasterClock (077DB0D8)->(077DC728): stub
0009:fixme:dmsynth:IDirectMusicSynth8Impl_Open (077DC860)->(0135FA34): stub
0009:fixme:dmusic:synth_dmport_Activate (077DC550/077DC550)->(1): semi-stub
0009:fixme:dmime:IDirectMusicPerformance8Impl_AddPort (077E6710, 077DC550): semi-stub
0009:fixme:dmime:IDirectMusicPerformance8Impl_AssignPChannelBlock (077E6710, 0, 077DC550, 1): semi-stub
0009:fixme:dmime:IDirectMusicPerformance8Impl_AssignPChannelBlock (077E6710, 1, 077DC550, 2): semi-stub
0009:fixme:dmusic:IKsControlImpl_KsProperty prop flags 2 not yet supported
0009:fixme:dmusic:IKsControlImpl_KsProperty prop flags 2 not yet supported
0009:fixme:dmime:IDirectMusicPerformance8Impl_Stop (077E6710, 00000000, 00000000, 0, 0): stub
0034:fixme:d3d:state_linepattern_w Setting line patterns is not supported in OpenGL core contexts.
0009:fixme:dmime:IDirectMusicPerformance8Impl_Stop (077E6710, 00000000, 00000000, 0, 0): stub
0009:fixme:dmstyle:chord_track_Init (28CB4240, 28CB3A38): stub
0009:fixme:dmstyle:command_track_Init (28CB45B8, 28CB3A38): stub
0009:fixme:dmime:tempo_IPersistStream_Load (28CB4938, 28CB3E00): Loading not fully implemented yet
0009:fixme:dmstyle:IPersistStreamImpl_Load (28CB4CB8, 28CB3E00): Loading not fully implemented yet
0009:fixme:dmfile:parse_style_ref : DMRF (DM References) list, not yet handled
0009:fixme:dmstyle:IPersistStreamImpl_Load (28CB5260, 28CB5038): Loading
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmstyle:style_track_Init (28CB4CB8, 28CB3A38): stub
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmband:band_track_Init (28CC5E90, 28CB3A38): stub
0009:fixme:dmstyle:IDirectMusicStyle8Impl_GetDefaultBand (28CB5260, 0135F350): stub
0009:fixme:dmime:IDirectMusicPerformance8Impl_PlaySegment (077E6710, 28CB3A38, 4096, 0x0, 00000000): stub
0009:fixme:dmusic:IKsControlImpl_KsProperty prop flags 2 not yet supported
0009:fixme:dmusic:IKsControlImpl_KsProperty prop flags 2 not yet supported
0009:fixme:ddraw:d3d_vertex_buffer7_Optimize iface 28FBC6C0, device 07783BA0, flags 0 stub!
0009:fixme:dmime:IDirectMusicPerformance8Impl_Stop (077E6710, 00000000, 00000000, 0, 0): stub
0009:fixme:dmstyle:chord_track_Init (28CF74F8, 28CF7130): stub
0009:fixme:dmstyle:command_track_Init (28CF8210, 28CF7130): stub
0009:fixme:dmime:tempo_IPersistStream_Load (28CF8590, 28F45490): Loading not fully implemented yet
0009:fixme:dmstyle:IPersistStreamImpl_Load (28CF8910, 28F45490): Loading not fully implemented yet
0009:fixme:dmfile:parse_style_ref : DMRF (DM References) list, not yet handled
0009:fixme:dmstyle:IPersistStreamImpl_Load (28F371F8, 28CF8C90): Loading
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmstyle:style_track_Init (28CF8910, 28CF7130): stub
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmfile:parse_instrument : DMRF (DM References) list
0009:fixme:dmband:band_track_Init (2E5ACCF0, 28CF7130): stub
0009:fixme:dmstyle:IDirectMusicStyle8Impl_GetDefaultBand (28F371F8, 0135F18C): stub
0009:fixme:dmcompos:IDirectMusicComposerImpl_AutoTransition (077EB840, 077E6710, 4, 32, 00000000, 00000000, 00000000, 00000000): stub
0009:fixme:dmusic:IKsControlImpl_KsProperty prop flags 2 not yet supported
0009:fixme:dmusic:IKsControlImpl_KsProperty prop flags 2 not yet supported
0034:fixme:d3d:wined3d_buffer_load Buffer is mapped through buffer object, not loading.
0034:fixme:d3d:wined3d_buffer_load Buffer is mapped through buffer object, not loading.
0034:fixme:d3d:wined3d_buffer_load Buffer is mapped through buffer object, not loading.
0034:fixme:d3d:wined3d_buffer_load Buffer is mapped through buffer object, not loading.
0034:fixme:d3d:wined3d_buffer_load Buffer is mapped through buffer object, not loading.
0034:fixme:d3d:wined3d_buffer_load Buffer is mapped through buffer object, not loading.
0034:fixme:d3d:wined3d_buffer_load Buffer is mapped through buffer object, not loading.
0034:fixme:d3d:wined3d_buffer_load Buffer is mapped through buffer object, not loading.
0034:fixme:d3d:wined3d_buffer_load Buffer is mapped through buffer object, not loading.
0034:fixme:d3d:wined3d_buffer_load Buffer is mapped through buffer object, not loading.
0034:fixme:d3d:wined3d_buffer_load Buffer is mapped through buffer object, not loading.
0034:fixme:d3d:wined3d_buffer_load Buffer is mapped through buffer object, not loading.
0034:fixme:d3d:wined3d_buffer_load Buffer is mapped through buffer object, not loading.
jackun commented 4 years ago

Does develop branch fix this specific bug? https://github.com/flightlessmango/MangoHud/commit/053a07d83cd4c7fa26ae6de9d2d36856222d26eb

HughJass commented 4 years ago

No, same behavior as in my video. I'm not a graphics guy, but it seems like the mangohud is on the same "layer" as some of the GUI elements of the game. Notice that the mangohud window is moving as the subtitles window is moving in the game

jackun commented 4 years ago

Can you try replacing the line at https://github.com/flightlessmango/MangoHud/blob/d3f895cbef4eae07a050ee86ab32b41244a8201c/src/gl/inject.cpp#L193 with bool invalid_scissor = true;

HughJass commented 4 years ago

No change

flightlessmango commented 4 years ago

I think this has been fixed in develop MangoHud-latest.tar.gz