Commit Graph

718 Commits (dc7bb0fdf4f995a9060d20f98f50f5ca2ab94253)

Author SHA1 Message Date
flightlessmango dc7bb0fdf4 Basic OpenGL hooking 3 years ago
FlightlessMango 86c7f73621 Env var for sampler 3 years ago
flightlessmango 7ac7b1dc23 Trim wineversion 3 years ago
FlightlessMango 7078a4ff9e Use uint32_t for adl_vendorid 3 years ago
flightlessmango 8ff16d4889 Implement ADL for amd gpu info 3 years ago
flightlessmango 8f69692a55 Don't crash if no custom_data env 3 years ago
FlightlessMango f7363e8feb Add custom data to the logfile 3 years ago
FlightlessMango 23342947c0 Forgot comma before cpu sched 3 years ago
flightlessmango 707d69cab4 Only bail on config if linux 3 years ago
flightlessmango c3e5fc7496 ifdef linux for battery stuff 3 years ago
FlightlessMango 1649c7f794 Run start_logging for autostart in vulkan init 3 years ago
FlightlessMango 0f83d4eb7d Add governor/sync/scheduler and battery watt to log 3 years ago
FlightlessMango 0cf4467f6c Assume native if no wine version 3 years ago
FlightlessMango 0485e03dbc Check cpu scheduler 3 years ago
FlightlessMango 8ffdeb8ce1 Check cpu governor 3 years ago
FlightlessMango 51b0939a80 Check battery info 3 years ago
FlightlessMango e32934ee40 Attempt to check sync 3 years ago
FlightlessMango cc83f2878e Try to guess mesa version 3 years ago
FlightlessMango 76fb1ec3cb Remove lsof as dependency 3 years ago
FlightlessMango e13e98e03a Fixed debug output of gpu name 3 years ago
FlightlessMango f8fa73daf2 Get logged gpu name from pci_ids instead 3 years ago
FlightlessMango 66a07d77ba Use read_line for checking cpu sched 3 years ago
FlightlessMango 3261d12ad7 Add checking cpu scheduler 3 years ago
FlightlessMango 1a8689fbba Add gpu power to logs 3 years ago
jackun 41034b1089
[OpenGL] Return -1 instead for glXSwapBuffersMscOML if it is null 3 years ago
jackun 439ff716c2
[OpenGL] Some nullptr guards
Maybe helps issue #355
3 years ago
jackun 53cca5e723
Merge remote-tracking branch 'origin/master' into develop 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
flightlessmango 2fe9808f69
Merge pull request #433 from baryluk/programname
Improve code for program name extraction
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.
4 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.
4 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.
4 years ago
flightlessmango 185941a857 Fix some warnings 4 years ago
flightlessmango fc8eeaf0dc Lingering TableNextCell 4 years ago
flightlessmango e57be394d7
Merge pull request #428 from flgx16/swap
Add swap
4 years ago
jackun 4862d83b60
Make `add_blacklist` const&
Might be optimized by compiler already but who knows.
4 years ago
jackun 72f1ec094c
Don't continue parsing configs if process is blacklisted 4 years ago
FlightlessMango 90ce1c5778 ImGui wrap 4 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