Commit Graph

1011 Commits (b0ee2f749c19cc3c074ad7102f4a8075142935dc)
 

Author SHA1 Message Date
Stephan Lachnit b0ee2f749c
imgui wrap from Wrap DB and build-source.sh rework
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
3 years ago
jackun a27984f343
Delete unused shell scripts 3 years ago
jackun 53cca5e723
Merge remote-tracking branch 'origin/master' into develop 3 years ago
freddii 2bbb7174e3 fixed typos 3 years ago
FlightlessMango 48cf66630b Detect WineD3D 3 years ago
FlightlessMango d0c35b9587 Add detection of Damavand 3 years ago
FlightlessMango abe45c7485 Check log stream before writing 3 years ago
jackun ae410f01e7
Re-init cpu stats if core count changes; fix off-by one error
Helps with #438
3 years ago
jackun 6ad9791ceb
Deduplicate code for `find_*_input` functions 3 years ago
jackun 0fbbf00fe2
[OpenGL] Load libEGL.so.1 and use eglGetProcAddress to get EGL procs 3 years ago
Witold Baryluk d4b8f5f519 Search whole PATH for glslangValidator from system
This is more robust and correct way do to it.
3 years ago
jackun 18650c3c70
Add `--dlsym` 3 years ago
flightlessmango 2fe9808f69
Merge pull request #433 from baryluk/programname
Improve code for program name extraction
3 years ago
flightlessmango d183a4589d
Merge pull request #460 from baryluk/patch-3
Disable lsof warnings explicitly
3 years ago
Witold Baryluk 25f7201770
Disable lsof warnings explicitly
On most system lsof is compiled with warnings enabled.

This causes spam multiple times per one mangohud invocation (up to about 10 times even), like this:

```
lsof: WARNING: can't stat() tracefs file system /sys/kernel/debug/tracing
      Output information may be incomplete.
```

Disable warnings explicitly.
3 years ago
flightlessmango 8aa299630c Disable by default some vulkan layers that cause issues 3 years ago
jackun 19ef4f3df0
[dbus] re-init active player so `media_player_name` changes take effect
Might be good to check if player name actually changed though.
3 years ago
Witold Baryluk c92f805c2d Prevent infinite recursion when using Mesa zink.
When using zink (`MESA_LOADER_DRIVER_OVERRIDE=zink`),
running any app (OpenGL or Vulkan), will trigger running
`glxinfo`. Unsetting of `LD_PRELOAD` is not sufficient,
because if using `zink`, it will load Vulkan, and load Vulkan
implicit layer for Mangohud, using `/usr/share/vulkan/implicit_layer.d/MangoHud.json`,
which will cause it to reenter this function in another process,
causing infinite recursion (until the Vulkan driver finally errors
out with too many VkDevices  / contexts created).
I have easily have seen recursion depths of 200+ until this happen,
and sometimes takes up to 2 minutes, with 2000 extra shell and `cut`
processes in the process tree.

Fix this by marking recursion entrance.

This makes glxmark start in less than 1 second, instead
about 60 seconds.

When at it us `glxinfo -B`, which is significantly faster
on zink, yet provides all information we need.
3 years ago
flightlessmango 185941a857 Fix some warnings 3 years ago
flightlessmango fc8eeaf0dc Lingering TableNextCell 3 years ago
flightlessmango 8d7823b132
Merge pull request #446 from aidanharris/meson-explicitly-check-for-mako
Explicitly test for the mako python module
3 years ago
flightlessmango e57be394d7
Merge pull request #428 from flgx16/swap
Add swap
3 years ago
Aidan Harris 0a29c7369a
Explicitly test for the mako python module
Some distros (Gentoo) support multiple versions of python3 and mako may
not be built for all of the implementations. Testing for the module
early will make sure meson bails out if the module cannot be
found.
3 years ago
jackun 4862d83b60
Make `add_blacklist` const&
Might be optimized by compiler already but who knows.
3 years ago
jackun 72f1ec094c
Don't continue parsing configs if process is blacklisted 3 years ago
FlightlessMango 90ce1c5778 ImGui wrap 3 years ago
FlightlessMango 0162fb913c Always try to update exec's 4 years ago
Alessandro Toia 2c99138374 Remove custom_text_center from legacy and trailing spaces 4 years ago
flightlessmango bd71d0b5fd Check for lsof before trying to use it 4 years ago
flightlessmango 1b44c57db5 Improved lsof for checking gamemode/vkbasalt 4 years ago
flightlessmango 214bb83d40 Moved update_exec() into a thread 4 years ago
flightlessmango 05cf9fc5d6 Add gamemode and vkbasalt function 4 years ago
Alessandro Toia 1d8f4b79c1 Formatting Fixes and remove unused variable 4 years ago
FlightlessMango c54f8bec5d Hud elements exec function 4 years ago
Alessandro Toia c4925ac83e Allow multiple instances of custom_text_center and custom_text 4 years ago
FlightlessMango 05c09e3fdf Only draw custom_text_center if it's not empty 4 years ago
Witold Baryluk 4f20da781d Improve code for program name extraction
This cleans up the code, as well fixes the bug of not setting
program_name if the MANGOHUD_CONFIG env is specified.

Instead of global variable, that could be not-initialized
use a function to get a program name in logging.

While at it, revamp code and separate things into own functions,
and return by value, and make them easier to use / share code.
4 years ago
Lukáš Horáček f11a49ae8b
Add swap 4 years ago
Alessandro Toia c16332eddf Less tr and grep to find driver version 4 years ago
Alessandro 8f97722c57
Merge pull request #423 from AlexxandreFS/fix_cut
fix: cut --output-delimiter
4 years ago
Alessandro Toia 80004d3fe0 Chnage fps color based on fps value 4 years ago
Alessandro Toia 75d9e51445 Remove custom_header, add new params custom_text_center and custom_text 4 years ago
AlexxandreFS fa433cb798 fix: cut --output-delimiter 4 years ago
Alessandro Toia 439f1266ba Remove custom_header background and add newline after 4 years ago
Alessandro Toia db82ed0a1d Add documentation for custom_header param 4 years ago
Alessandro Toia 576f9887e0 Add custom_header to legacy_elements, make sure custom_header is always shown first 4 years ago
Alessandro Toia c479694735 Use SetCursorPosX() instead of SameLine() to center text 4 years ago
Alessandro Toia b77517501c Add new param custom_header 4 years ago
flightlessmango 256723c732
Merge pull request #422 from baryluk/patch-4
Fix some MESA inherited references in overlay params
4 years ago
Witold Baryluk 6a1028b17e
Fix some MESA inherited references in overlay params
MANGOHUD_CONFIG as used.

MANGOHUD printf prefix.
4 years ago