Commit Graph

72 Commits (2f807a4c0da400606008195d15c6d7d9d733e3d2)

Author SHA1 Message Date
jackun 2f807a4c0d
Add `spdlog` wrap and logging 3 years ago
jackun 88d801bd7e
Move functions not directly related to vulkan from vulkan.cpp to overlay.cpp 3 years ago
jackun 8244d7f288
Fix vulkan driver's patch version 3 years ago
jackun 750d2cddb5
Make engine type per instance 3 years ago
FlightlessMango e39513cfa4 still check PengineName if engine OpenGL 3 years ago
FlightlessMango 3f120b1fc5 don't set engine to vulkan if already set 3 years ago
Alessandro Toia 570bef468b Cosmetic changes to engine detection 3 years ago
FlightlessMango 5330573c8c don't rely on std in engine detection 3 years ago
FlightlessMango 2e5fc31711 use vulkan to determine if zink 3 years ago
jackun 34f964eab9
Use aligned buffer size with vkMapMemory too 3 years ago
Alessandro Toia 856c333e09 Fix wine param not properly detecting proton experimental 3 years ago
Alessandro Toia 272b035ca8 Fix wine param not detecting proton experimental 3 years ago
jackun 30cdc912a8
Rework blending equation to preserve alpha in output buffer
bda12e5fdd
3 years ago
jackun bdd87f5eff
Use SetTexID instead 3 years ago
jackun 6c737dc734
Round up buffer allocation sizes to `nonCoherentAtomSize`.
For some Vega APUs. Or don't use VK_WHOLE_SIZE?
3 years ago
jackun f77a73ce8a
Fix scoped_lock clash with >= c++17 3 years ago
FlightlessMango 6286313478 MSVC building fixes 3 years ago
jackun 8b2255b35c
Fix crash on destroying NULL swapchain
Vulkan spec allows calling vkDestroySwapchainKHR with VK_NULL_HANDLE swapchain.

mesa MR#5616
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
jackun 53cca5e723
Merge remote-tracking branch 'origin/master' into develop 3 years ago
FlightlessMango d0c35b9587 Add detection of Damavand 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
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 bd71d0b5fd Check for lsof before trying to use it 3 years ago
flightlessmango 1b44c57db5 Improved lsof for checking gamemode/vkbasalt 3 years ago
flightlessmango 05cf9fc5d6 Add gamemode and vkbasalt function 3 years ago
Alessandro Toia c16332eddf Less tr and grep to find driver version 3 years ago
AlexxandreFS fa433cb798 fix: cut --output-delimiter 3 years ago
FlightlessMango 6ed47879e7 __gnu_linux__ shouldn't be caps 3 years ago
FlightlessMango f375d94188 libgen.h not needed on win32 3 years ago
jackun ee2933bff5
Resize fonts 4 years ago
Alessandro Toia ef05ab2f20 Parse blacklist with parse_str_tokenize 4 years ago
Alessandro Toia 7c80dc53ef Allow users to add a new item to the blacklist from config file 4 years ago
jackun 1e8487c991
Move color conversion to HudElements; move some overlay related functions back to overlay.cpp 4 years ago
FlightlessMango 44d5546ba5 Add param table_columns 4 years ago
flightlessmango ce6a87823b
Merge pull request #388 from flgx16/cpu_power
Add cpu_power
4 years ago
FlightlessMango e5015283a8 cellpadding_y param 4 years ago
Lukáš Horáček 3726c90c7a
Add cpu_power 4 years ago
jackun 3c75cc6c60
rm -fr whitespace around __gnu_linux__ 4 years ago
FlightlessMango cc38924997 Added graphs 4 years ago
jackun dbfbd05ecf Add `media_player` to HudElements 4 years ago
FlightlessMango aebd3353ab Move most hud elements into HudElement functions 4 years ago
flightlessmango 46a239855b
Merge pull request #380 from gort818/gradual_colors
Gradual colors for gpu & cpu load
4 years ago
Lukáš Horáček 06f8641363
Fix for FPS limit breaking
Fixes #127
4 years ago
Alessandro Toia 466fc1a008 If load is high set the defined high color 4 years ago