Commit Graph

1464 Commits (master)

Author SHA1 Message Date
flightlessmango 56b23d7c12 presets: remove version from 4 6 months ago
Joshua Ashton d5f6f44c26 overlay_params: Enable "debug" by default on 4 6 months ago
Joshua Ashton aeae2a00ac app: Support for setting only frametime/app frametime 6 months ago
Joshua Ashton 684750158e amdgpu, overlay: Use gpu_metrics for CoreClock on Steam Deck
sysfs path gives 200 or 1040 Mhz always. Don't use that!
6 months ago
flightlessmango f168483c3e intel: don't try to get fdinfo if not found 6 months ago
flightlessmango dcb8741581 config env: trim key and value 6 months ago
flightlessmango 60779dda9a params: graphs: fix for legacy layout 6 months ago
Alex Maese b3fa8f5c29 Presets: Add ability to specify preset_path via env variables 6 months ago
flightlessmango ea725ed1d2 mangoapp: revert the msg key 6 months ago
flightlessmango b1ae5b87c7 mangoapp: init spdlog 6 months ago
flightlessmango efebc4fe34 preset: 4: disable throttling graph
Until we've fined tuned this a bit more, let's not expose it by default
6 months ago
flightlessmango 669f6f96a1 params: preset: remove debug 6 months ago
flightlessmango 50d578973c presets: parsing: continue if empty line 6 months ago
flightlessmango fd4b06f876 preset: add hdr to 3 6 months ago
flightlessmango 941c4e21a5 add refresh_rate and hdr to preset 4 6 months ago
flightlessmango 94a8dfb658 Add hdr and refresh rate options 6 months ago
flightlessmango c51385ab2c fps_metrics: fix case where it wouldn't clean up properly 6 months ago
flightlessmango 9411963ad9 intel: rework into c++ class
This allows us to properly clean up the thread and popen when exiting
6 months ago
flightlessmango 0849ae42b8 remove accidental debug stuff 7 months ago
flightlessmango 48f8db420b add fps_metrics param
fps_metrics takes a list of decimal value between 0.001-0.9 or avg
7 months ago
flightlessmango f351515265 Fix gpu_fan for AMD
It was incorrectly checking deviceID instead of vendorID.
We also use hwmon for fan reading just in case.
7 months ago
Joshua Ashton 9393066ef8 overlay: Fix crash when table_columns is 0
Can happen from config file sometimes.
7 months ago
Alessandro Toia 81941faa8c overlay_params: Fix not using mangohud defaults with no conf present 7 months ago
Tianhao Chai 29058a09bb nvctrl: call XDefaultScreen for screen id (#1152)
Calling nvctrl XNVCTRLIsNvScreen with X display ID used for screen id is
a programmer error. For most common use cases, Gnome on X11 may launch
user sessions on X display ":1" but still uses screen 0. Current code
will always fail to find a correct display in this case, as both
`IsNvScreen(":0", 0)` and `IsNvScreen(":1", 1)` returns false.

Call XDefaultScreen with `struct Display *` to obtain the correct screen
id, then use this id for `IsNvScreen()`.
7 months ago
Alessandro Toia 7d51113e16 hud_elements: fix missing exec_list in sort_elements 7 months ago
FlightlessMango 50989b7307 blacklist: remove wine64-preloader 7 months ago
FlightlessMango e5df3a183d spdlog: always use macro 7 months ago
Alessandro Toia b26baa21fc fix accidental deletion 7 months ago
Alessandro Toia c925688954 Cast procName to const char* to be able to print with SPDLOG 7 months ago
Alessandro Toia 30c7755111 Fix build error with fmt lib 7 months ago
FlightlessMango 363b6530cf meson: define DEBUG if debug 7 months ago
Alessandro Toia 5f05f67e22 overlay_params: print all params and values to debug 7 months ago
FlightlessMango 544856b174 spdlog: handle log level with MANGOHUD_LOG_LEVEL 7 months ago
Alessandro Toia f40b32fc45 hud_elements: include <map> header 7 months ago
Alessandro Toia 381e593f6b hud_elements: rework sort_elements for maintainability 7 months ago
FlightlessMango dbdc295521 hud elements: rework function vector
This uses std functional instead and adds name field.
The primary purpose is to make debugging of hud elements easier
7 months ago
FlightlessMango fae6035c20 imgui: revert font OverSampleH to 3
ImGui changed OversampleH default to 2, but it appears to sometimes cause
crashing issues in 32bit applications.
7 months ago
FlightlessMango e85c580de3 implot: set default library static 7 months ago
FlightlessMango 8bda2a2a04 hud elements: custom_text fix missing popfont in code path 8 months ago
FlightlessMango b32e6b299c hud elements: custom_text guard for out of range 8 months ago
FlightlessMango d962ae5181 Nvidia: nvml: fan speed in percent 8 months ago
Self Denial 0341e28e05 Move num_coolers to global var & update at init within checkXNVCtrl(). 8 months ago
Self Denial 10e5abcccc Attempt to query number of coolers before fan_speed. Inspiration: https://github.com/NVIDIA/nvidia-settings/blob/main/samples/nv-control-targets.c 8 months ago
Alessandro Toia 10c0f608fd file_utils: add remove_parentheses function and use it for gpu_name 8 months ago
Alessandro Toia cd87e22dc3 hud_elements: bump buffer size of TextColored to 128 8 months ago
John Zimmermann 23c9b50742 meson: fallback to project_version() without git
resolves #1131
8 months ago
FlightlessMango 13164b01ad logging: fix percentiles miscalculation 8 months ago
Alessandro Toia 4bc55bf966 hud_elements: increase buffer size of TextColored to prevent truncation 8 months ago
FlightlessMango fb1bf07dbb frametime: padding between text and graph 8 months ago
FlightlessMango bef35591f8 hud compact: battery: don't show decimals watt 8 months ago
FlightlessMango 30661f8cea compact hud: don't show vram GiB 8 months ago
FlightlessMango 5c1796e697 preset 4: add throttling_status_graph 8 months ago
FlightlessMango a67849a20b mingw: ifdef more throttling code for linux 8 months ago
FlightlessMango d0ee1eaa28 hudelements: frame_timing: draw plot using implot
Implot allows us to draw multiple lines in the graph.
We draw the frametime as usual but also include thermal and power throttling.
Thermal throttling is red and power is yellow.
8 months ago
FlightlessMango 55c8be5b0b amdgpu: collect throttling data for graph 8 months ago
FlightlessMango 84caba707a subproject: implot 8 months ago
FlightlessMango 801f02412c imgui: update date to 1.89.9 8 months ago
Hannes Mann 6342056e70 params: parse_preset_config fixes 8 months ago
Alessandro Toia 41e4859547 vulkan: Use correct corresponding macro for IM_NEW() 8 months ago
Clayton Craft 22d2de4edd logging: include process RSS
Resident set size shows non-swapped memory usage of a process. This is
useful to have for comparing memory usage over time for the the process
being measured.
8 months ago
Clayton Craft 675202713d logging: include swap usage
This includes swap usage in the log output. It's useful for doing
analysis of memory config on performance, and can serve as useful input
when collecting other performance data since swapping almost always
impacts runtime perf.
8 months ago
FlightlessMango 1a0abc65df presets param: inherit
This option is only for presets. It inherits the default preset.
This allows you to modify an existing preset without having to rewrite it
8 months ago
Łukasz Adamczak 5c6278baf7 Fix path used for amdgpu hwmon readings
This fixes #1099.
8 months ago
Alessandro Toia 17d4541980 device: switch gamepad_battery to device_battery and allow to enable mouse or gamepad or both 8 months ago
FlightlessMango 53ee2275e4 hudelements: fix exec not appearing on the same line as custom_text 8 months ago
Alex Maese d75afd6b7a Default to first preset (-1) if preset is unset 8 months ago
Alex Maese 939ab8bd4a Revert "params: preset: set default current_preset -1"
This reverts commit 02c3b4f235.
8 months ago
FlightlessMango 02c3b4f235 params: preset: set default current_preset -1 8 months ago
Jan Solanti 3173cae536 Add core_bars for a per CPU core load histogram 8 months ago
Alex Maese cd05d1771f Add ability to toggle through presets 8 months ago
Albert Sebastian f66700296b logging: fix bug where 97th percentile prints frametime instead of fps 9 months ago
FlightlessMango 08152325d4 logging: calc fps data using frametime 9 months ago
FlightlessMango 09ad89f4af mingw: don't use getIntelGpuInfo 9 months ago
FlightlessMango d5ca00717e windows: don't include intel.cpp 9 months ago
FlightlessMango cee7b8b601 intel: use fdinfo for gpu load 9 months ago
FlightlessMango 585d6e0f46 blacklist: add wine apps that we don't care about 9 months ago
Alessandro Toia 1de9551d38 gamepad: add wireless logitech devices using hidpp 9 months ago
bouhaa 1f925a8328 Don't break when CPUPower k10temp is found
Vanilla upstream versions don't have any power management support. Also, if zenpower/zenergy are found in the AMD options always pick that over the k10temp version.
9 months ago
Etaash Mathamsetty 41f923b0b2 Use vulkan/GL device name 9 months ago
siroccal 3922da8a39 fix small cpu/gpu mixup bug
check (correct) cpu power string length instead of gpu
9 months ago
FlightlessMango 7189b75efe blacklist: break earlier if hardcoded blacklist 10 months ago
FlightlessMango 373c8e1f65 blacklist: only print info once 10 months ago
FlightlessMango dd57951462 amdgpu: don't try to open paths that don't exist 10 months ago
bouhaa f964702aea integrate zenergy into Mangohud
Reuses most of the RAPL code paths
10 months ago
FlightlessMango e60b625fd0 meson: check for glslang bin as well 10 months ago
Bouke Haarsma 05d3a6db04 fix: Use k10-temp power sensors if exist 10 months ago
FlightlessMango f92eb8bce0 file_utils: define procdir 10 months ago
Joshua Ashton 6a63b7612b hud_elements: Handle hiding app frametime
Currently this just shows two...
10 months ago
Joshua Ashton ef444a740d mangoapp: Use glXQueryCurrentRendererIntegerMESA if available
This is the best way to get vendor IDs instead of hardcoding based on the GL_RENDERER vendor string.
10 months ago
FlightlessMango 528ba6c9c0 param: fps_text 10 months ago
FlightlessMango f38cc78996 add --version to mangohud script 10 months ago
Bouke Haarsma f1a6753796 Use k10-temp power sensors if exist 10 months ago
FlightlessMango 5d93e484ce intel: fixed typo from last 10 months ago
FlightlessMango be1e94f008 intel: check for Render/3D 10 months ago
FlightlessMango 1f2b31008e text outline: color: set alpha to alpha param 10 months ago
FlightlessMango 41f8446cf1 hudelements: colors: set color alpha according to alpha param 10 months ago
FlightlessMango dc1761e98a static link stdc++ 10 months ago
andrefsagh@gmail.com 5054f6ceff Show amdgpu voltage from hwmon
Added config parameter 'gpu_voltage'
10 months ago
FlightlessMango 602ba78ea3 Split library into vulkan and opengl parts.
This has caused a lot of issues because when preloaded the vulkan hooks
will still initialize even tho it's an OpenGL application.
This will subsequently crash the application.
The solution is to split the vulkan and opengl parts into two separate
shared libraries.
10 months ago
FlightlessMango 1182bcfbec hud_elements/battery: make sure time isn't illogical 10 months ago
Łukasz Adamczak 38604927d7 Remove debug printf
I believe it was left here by omission. It currently prints out "0" or "1" to stdout depending on `battery_watt` setting.
11 months ago
FlightlessMango 12567c68b0 logging: upload: print url to console 11 months ago
FlightlessMango f4dfdd82c9 hud elements: duration: prefix 0
[skip ci]
11 months ago
FlightlessMango 30748bdf0c param: duration 11 months ago
FlightlessMango b3b9672631 params: don't enable fahrenheit and dynamic_frame_timing on full
[skip ci]
11 months ago
FlightlessMango 6e264adecb params: dynamic_frame_timing
This changes frame_timing y-axis to correspond with the current maximum
and minimum frametime instead of being a static 0-50

[skip ci]
11 months ago
FlightlessMango 881b4d2e4a Params: add temp_fahrenheit 11 months ago
FlightlessMango 7c2a90c209 mangoapp: update colors if needed
[skip ci]
11 months ago
FlightlessMango 6abc794b42 amdgpu: use hwmon for core clock
gpu_metrics currently reports the wrong value, so until that's fixed
we'll rely in hwmon
11 months ago
FlightlessMango b48b03e131 intel: just check if we're inside runtime container
If we're inside the container, try using steam-runtime-launch-client,
if it works it works. If not then abandon hope.

[skip ci]
11 months ago
FlightlessMango 5369683ff9 Intel: launch intel_gpu_top with runtime client if available
If we're inside the steam runtime container and the `--alongside-steam`
option exists, then we can run intel_gpu_top successfully with
steam-runtime-launch-client.
11 months ago
FlightlessMango 352d365493 mangoapp: get resolution from gamescope
[skip ci]
12 months ago
FlightlessMango 67862421a6 Text outline
Adds the text_outline parameter that draws a black outline around all
text and the horizontal separator

[skip ci]
12 months ago
FlightlessMango 3efc2c05ee params: don't enable engine_short_names with full
[ci skip]
12 months ago
jackun 5fde8749af
Use a "get" function to initialize X11 loader...
...so static init doesn't spam log before we got that set up properly.
12 months ago
FlightlessMango ea3ba7e30d system info: don't use glxinfo
It's not available in steam runtime and generates a lot of log spam
1 year ago
FlightlessMango 5754ca13ee vulkan manifest: set cpu_family in layer name 1 year ago
FlightlessMango 0b3904fd38 change config and upload logs to debug 1 year ago
FlightlessMango 744f173298 params: set proper default values for font_size and table_columns 1 year ago
FlightlessMango c9e67ca573 params: set param defaults in it's own func 1 year ago
Alessandro Toia 2b5bf96b20 overlay: Fix non stretched horzitontal center position layout 1 year ago
Alessandro Toia 1be907ed93 overlay: simplify window_size even more for !horizontal_stretch 1 year ago
FlightlessMango 3f8f036ee8 params: add cstdint header 1 year ago
Alessandro Toia e77585d848 params: add missing bottom-center layout 1 year ago
Alessandro Toia 7b5c0a43c6 overlay: simplify window_size for !horizontal_stretch 1 year ago
Alessandro Toia ed85504dec overlay: fix spacing when not using horizontal_stretch 1 year ago
Bill Li 9b0aec0540 nvml: Do not include header nvctrl.h if not build with xnvctrl support 1 year ago
Bill Li 2101090f00 nvml: Use #ifdef HAVE_XNVCTRL to check if xnvctrl is available 1 year ago
Alessandro Toia 3daf7d73b3 param: horizontal_stretch 1 year ago
FlightlessMango 2ffc579b7f config: add /etc/MangoHud.conf as an option
[skip ci]
1 year ago
FlightlessMango 6c46794496 cpu: core mhz: if scaling isn't available, use /proc/cpuinfo instead 1 year ago
FlightlessMango b2c88c2dfd param: engine_short_names 1 year ago
FlightlessMango cbf531e6c8 nvml: use xnvctrl if available to get fan speed 1 year ago
FlightlessMango 4161139597 amdgpu: run_thread default to true 1 year ago
FlightlessMango e2711b8059 hud elements: fix gamescope graphs size 1 year ago
FlightlessMango 7853af98d0 mangoapp: amdgpu: pause the polling thread when it's not needed 1 year ago
FlightlessMango 9bc90493be amdgpu: reduce polling period 1 year ago
Alessandro Toia 98c9897430 Fix layout for core_load 1 year ago
Alessandro Toia c534f33156 When using horizontal layout set table_columns param to current count of table_columns 1 year ago
Alessandro Toia a45816b8e1 Replace TableNextColumn() with ImguiNextColumnFirstItem() and ImguiNextColumnOrNewRow() 1 year ago
FlightlessMango f7a712110f intel: drm_dev use string instead 1 year ago
FlightlessMango 7ea1f33fa1 overlay: init_gpu: bring back checkNvidia 1 year ago
FlightlessMango ddfc32211f overlay: removed unused include 1 year ago
FlightlessMango 20b729cca4 Overlay: intel drm: change printf to spdlog 1 year ago
FlightlessMango 38a1328536 Overlay: find the correct drm for intel 1 year ago
FlightlessMango 1d8f9f6601 hud_elements: fix gamescope debug graphs width
The width was not calculated the same way as in frame_timing.
Leading the graphs to occupy different amounts of space
1 year ago
jackun 95b7b44b6f
Nuke `io_stats`, `io_read/write` params are enough 1 year ago
jackun e61321717e
[OpenGL] Use MESA_query_renderer if avail; GL "WSI" enum 1 year ago
Arvind Doobary d41a74ca1a
Show amdgpu junction and memory temp, if available
Added config parameter `gpu_junction_temp` and `gpu_mem_temp`

Closes #841
1 year ago
FlightlessMango 1093de8c44 nvml: fan: get rpm instead of percentage 1 year ago