Commit Graph

130 Commits (master)

Author SHA1 Message Date
jackun 9b6a39dfe9
sed s/gnu_linux/linux/g 3 years ago
FlightlessMango 3ac7772a55 Add universal param 3 years ago
jackun d1617818cd
Fix OpenGL gpu_name 3 years ago
jackun 891abdf3b9
Skip setting up vulkan render if HUD is hidden 3 years ago
jackun 355c521f12
Misc small clean ups and fixes 3 years ago
jackun a82e27d978
Use spdlog macros so logging can be completely disabled during compile-time 3 years ago
jackun 7d3b6b946d
Don't reinit stuff when re-creating swapchain
Partial revert of e13e98e03a
3 years ago
jackun 944202f273
Fix #ifdef scope in `overlay_DestroyInstance` 3 years ago
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 4 years ago
flightlessmango 1b44c57db5 Improved lsof for checking gamemode/vkbasalt 4 years ago
flightlessmango 05cf9fc5d6 Add gamemode and vkbasalt function 4 years ago
Alessandro Toia c16332eddf Less tr and grep to find driver version 4 years ago
AlexxandreFS fa433cb798 fix: cut --output-delimiter 4 years ago
FlightlessMango 6ed47879e7 __gnu_linux__ shouldn't be caps 4 years ago
FlightlessMango f375d94188 libgen.h not needed on win32 4 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
FlightlessMango 0a12632679 Gradual color change 4 years ago
Alessandro Toia b75f2944a1 Add struct for gpu color change data 4 years ago
FlightlessMango b9b20d1117 Remove render_mango as it's no longer needed 4 years ago
Alessandro Toia c53939587a Consolidate gpu/cpu load value config 4 years ago
Alessandro Toia daa23d49db Consolidate cpu load color config 4 years ago
Alessandro Toia e1269a18ff Consolidate gpu load color config 4 years ago
Alessandro Toia 6b71c9c6e3 Remove duplicate code 4 years ago
Alessandro Toia 1c0a5af001 Implement cpu load color change 4 years ago
Alessandro Toia 11d9c3aa97 remove param gpu_load_low as it is not needed 4 years ago
Alessandro Toia e7db65d4cd add function to return high/low/med, add switch for gpu load change 4 years ago
Alessandro Toia 8605d2a7dd Add spaces 4 years ago
Alessandro Toia d7f04deb56 Implement gpu load color change 4 years ago
Alessandro Toia 144e9a5917 Add color option to right_aligned_text 4 years ago
FlightlessMango cb8d992bfe Use real_font_size for padding 4 years ago
FlightlessMango 8b4df2a9a3 Put time and version inside imgui table 4 years ago
FlightlessMango d86a05d3a0 Don't log twice if interval is 0 4 years ago
FlightlessMango e25ffbafe0 Scale cellpadding based on font_size 4 years ago
jackun c15133b82f
Add `checkNvidia` for nvml/xnvctrl/nvapi checks, for header cleanup 4 years ago
FlightlessMango ab90abe4d4 De-linuxify vulkan 4 years ago
FlightlessMango 2ebb381166 Win32 d3d_shared 4 years ago
FlightlessMango 21e8d8c402 Move calc benchmark into overlay 4 years ago
FlightlessMango c3fc0f10b0 Start separating vulkan, keybinds, overlay and font 4 years ago