Commit Graph

1776 Commits

Author SHA1 Message Date
FlightlessMango
1447778fd4 amdgpu: improve polling perf by reading with c
Co-authored-by: Martin Roukala <martin.roukala@mupuf.org>
2022-05-16 09:01:13 +02:00
FlightlessMango
10e17b3153 Use Hudelements params in logging 2022-05-16 04:38:37 +02:00
jackun
b404fb948e
Set width by table_columns if not specified. Set "text" values to next column with no_small_text 2022-05-15 13:30:22 +03:00
jackun
753dd96325
Use overlay_new/end_frame to push/pop custom ImGui styles 2022-05-15 02:02:50 +03:00
jackun
f78107e662
Wrap columns to new row depending on table_columns param 2022-05-15 02:02:50 +03:00
jackun
85db56b36b
[dbus] Skip rendering MPRIS info if locking fails
D-Bus code gets randomly stuck for some reason.
2022-05-15 02:02:50 +03:00
jackun
f4cbb8b14b
When available (i.e. using vulkan), check vendor/device id and skip device if no match 2022-05-14 19:51:08 +03:00
jackun
ac7c898ba7
Use uint32_t for device id etc 2022-05-14 19:51:08 +03:00
jackun
d73932ad17
Clean up getAmdGpuInfo_actual 2022-05-14 19:50:57 +03:00
Alessandro Toia
9eb8447e14 Check if param gamepad_battery is enabled 2022-05-13 17:09:48 -07:00
jackun
58e277a8b7
Disable werror and tests for spdlog 2022-05-12 15:28:41 +03:00
FlightlessMango
3e57824f00 Fix zink detection from opengl path 2022-05-11 16:17:02 +02:00
FlightlessMango
5167e72649 gpu_metrics: send v1_0 to sysfs instead 2022-05-11 15:35:23 +02:00
jackun
bd2f7b24b8
Snapshot some paths so moving stuff around doesn't randomly break things 2022-05-10 19:05:36 +03:00
FlightlessMango
17d4c1dd4a amdgpu: use gtt_used for APUs 2022-05-10 15:39:08 +02:00
FlightlessMango
19fbd9bf9b Nvidia: only do throttling checks if enabled 2022-05-10 14:02:18 +02:00
FlightlessMango
5d6ebe2f38 Logging: use same data for benchmark and summary 2022-05-09 13:05:54 +02:00
FlightlessMango
6119fa80d1 mangoapp: layer: remove unused get_device_chain_info func 2022-05-06 10:30:50 +02:00
FlightlessMango
b30302c889 amdgpu: prefer hwmon over gpu_metrics for gpu temp
Co-authored-by: Martin Roukala <martin.roukala@mupuf.org>
2022-05-06 10:21:11 +02:00
FlightlessMango
bcf16a0def amdgpu: fixed incorrect gpu load for centipercent
Co-authored-by: Martin Roukala <martin.roukala@mupuf.org>
2022-05-06 10:20:04 +02:00
jackun
77bb7fd756
Disable werror for Dear ImGui
GCC 7.5:
../../subprojects/imgui-1.81/imgui.h:1642:80: warning: assuming signed overflow does not occur when assuming that (X - c) <= X is always true [-Wstrict-overflow]
     inline T&           operator[](int i)                   { IM_ASSERT(i >= 0 && i < Size); return Data[i]; }
2022-05-04 20:38:54 +03:00
FlightlessMango
663bbd05a6 Bump to 0.6.7 2022-05-04 15:11:51 +02:00
jackun
f0177703ea
Rename to frame_count for consistency 2022-05-04 07:14:46 +03:00
FlightlessMango
ec5952d834 amdgpu: changed clocks to average 2022-05-04 05:10:40 +02:00
FlightlessMango
8b7a1995a9 amdgpu: fix cpu temp and watt 2022-05-03 16:08:03 +02:00
FlightlessMango
f9cfdeb080 Add gpu throttling status
Co-authored-by: Martin Roukala <martin.roukala@mupuf.org>
2022-05-03 11:00:05 +02:00
FlightlessMango
ae85730448 Improve amdgpu polling
Co-authored-by: Martin Roukala <martin.roukala@mupuf.org>
2022-05-02 11:45:05 +02:00
FlightlessMango
350dca5d21 Dynamic width when fps_only 2022-04-26 18:57:37 +02:00
jackun
e4b23c937e
Deal with disappearing cpus
Reinit if cpu is brought offline/online, e.g. `echo 0 > /sys/devices/system/cpu/cpu1/online`

Fix #737
2022-04-25 10:29:15 +03:00
FlightlessMango
5349226fa5 amdgpu: average load over .5s 2022-04-23 16:34:35 +02:00
Alessandro Toia
06e3e9f663 Remove frametime when using fps_only param 2022-04-20 17:30:32 -07:00
FlightlessMango
4f9d870c72 fan: add some checks 2022-04-04 07:59:21 +02:00
FlightlessMango
66876b79f5 fix typo in fan element 2022-04-04 07:40:22 +02:00
FlightlessMango
65e70c9cfb fan param 2022-04-04 07:07:31 +02:00
jackun
425b98ae9a
[dbus] Fix trying to deinit non-active service(s)
Also, don't log with spdlog. It's already dead by then probably.
2022-04-02 00:52:45 +03:00
jackun
1f90b0b2aa
Revert "overlay: remove HUDElements.params setter"
This reverts commit 14ddc9563f.

HUDElements.params gets stale. Needs a proper fix though.
2022-04-01 21:51:18 +03:00
jackun
3ee1048acf Check if amdgpu gpu_metrics can be read and do some sanity-checks 2022-03-31 09:04:11 +03:00
William Pettersson
f4081d46f5 Detail option disabling in README
Make it more clear/explicit in the README exactly how to disable the default options
2022-03-30 10:27:17 +03:00
jackun
c66d4514a2
Merge pull request #707 from evelikov/mangoapp-fixes
Various mangoapp fixes, et al
2022-03-30 10:21:39 +03:00
Emil Velikov
e50a969586
hud_elements: one assignment per line
Stay consistent with the rest of the project.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-30 10:20:29 +03:00
Emil Velikov
14ddc9563f
overlay: remove HUDElements.params setter
HUDElements.params is already set in the parse_overlay_config() call
before we even get here.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-30 10:20:29 +03:00
Emil Velikov
1dfb14da47
overlay_params: make parse_overlay_env() static
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-30 10:20:29 +03:00
Emil Velikov
6f85e388e5
overlay_params: mutate log_interval just after parsing
Currently we mutate the log_interval (if mangoapp is built), within the
logger itself. Move that to parse_overlay_config() where the actual
value is being parsed/set.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-30 10:20:29 +03:00
Emil Velikov
2b7db32f54
Const annotate overlay_params& across the board
Most of the API does not modify it, so annotate it as const.
This makes it earlier to reason what's happening.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-30 10:20:27 +03:00
Emil Velikov
f8e9ecb9fe
overlay: remove unused calculate_benchmark_data() declaration
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-30 10:18:46 +03:00
Emil Velikov
9639377694
overlay: annotate render_benchmark() as static
Function is used solely within the compilation unit.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-30 10:18:46 +03:00
Emil Velikov
5a53ad010f
overlay: position_layer() takes an immutable window_size
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-30 10:18:43 +03:00
Emil Velikov
1e840f286b
mangohud: initialize the window_size
This one seems janky - other frontends (glx/egl LD_PRELOAD, Vulkan)
init their own global window_size.

Although in reality we use the initial data solely to set the imgui
"window" position and we immediatelly overwrite it, with the follow-up
call render_imgui().

Odds are this won't fix the glitchy (re)sizes but it's a step in the
right direction.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-30 10:17:45 +03:00
Emil Velikov
74e83c0bba
mangoapp: iconify/restore the window, don't destroy it
Currently we're destroying the window, from under the glfw's framework
feet.

Basically we do a use-after-free, as glfwWindowShouldClose() is called
and due to some miracle we don't crash out.

Since we suspend all rendering, there's no need to actually destroy the
window - just iconify/restore it. A simple show/hide was attempted but
empirically did not work.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-30 10:17:45 +03:00
Emil Velikov
40a1758518
mangoapp: reuse shutdown() helper
Use the helper across the board, instead of open-coding it.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-30 10:17:45 +03:00