Commit Graph

185 Commits (86e49da174f5bae5011f46d5b6a43eb2e24120aa)

Author SHA1 Message Date
FlightlessMango 11bc5111eb mangoapp: move some variables to hudelements 1 year ago
FlightlessMango 8e4857a5c6 mangoapp: frame_timing: set height when not horizontal 1 year ago
FlightlessMango 4b69f23fb5 Add gpu_fan param and hwmon fan reading
Co-authored-by: Andreas Rachev <andreasratchev@gmail.com>
1 year ago
Alessandro Toia 78d99a6aab Fix exec_name overlapping with previous column when not in compact mode 1 year ago
FlightlessMango a67a6bc79d hud elements: exec_name: push the name one column over 1 year ago
FlightlessMango 034b378e10 hud elements: replace ImGuiTableSetColumnIndex with TableNextColumn 1 year ago
FlightlessMango 544589aa20 legacy_elements: don't add to functions vector unless it's enabled 1 year ago
FlightlessMango a6715b1bf6 Hud elements: Put frame_timing inside a child window to prevent it messing with the parent layout
Co-authored-by: Alessandro <gort818@gmail.com>
1 year ago
Hannes Mann 3cebc55a35 hud_elements: Show FPS limit method 1 year ago
FlightlessMango c64ff84007 horizontal/compact layout fixes + battery_watt/battery_time params 1 year ago
Emil Velikov eecd451068 meson: build with -Werror=missing-declarations
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
1 year ago
Emil Velikov eecf901aed hud_elements: remove unused LinearToSRGB
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
1 year ago
FlightlessMango 0ae106dba5 hud_elements: remove extra '}' 1 year ago
FlightlessMango 7c54ea819c params: exec_name: don't show unless enabled 1 year ago
FlightlessMango 03d64e5afb params: exec_name 1 year ago
FlightlessMango e3995ffcbf mangoapp: compile using static mangohud_library 1 year ago
FlightlessMango f8ca49f627 allow for compact hud layout 2 years ago
FlightlessMango a76e8a26f5 hud elements: battery: adjust remaining time for normal and horizontal view 2 years ago
FlightlessMango bc89947df0 hud_elements: battery: don't show plug or watt in horizontal 2 years ago
FlightlessMango 4f49ffea7b frame_timing: minor adjustments for horizontal and mangoapp 2 years ago
FlightlessMango d0a1c4ea07 horizontal view and hud_no_margin 2 years ago
jackun c6bc257e11
Remove unnecessary row/column changes in HudElements::gpu_stats
Somehow missed these. Fixes f78107e6
2 years ago
jackun 032abbb031
Fix mangoapp frame time alignment 2 years ago
jackun f680c28f1f
Generalize control over socket so it works with OpenGL too 2 years ago
Alessandro Toia a18cabb152 Move gamepad_update to update_hw_info 2 years ago
jackun b404fb948e
Set width by `table_columns` if not specified. Set "text" values to next column with `no_small_text` 2 years ago
jackun f78107e662
Wrap columns to new row depending on `table_columns` param 2 years ago
jackun 85db56b36b
[dbus] Skip rendering MPRIS info if locking fails
D-Bus code gets randomly stuck for some reason.
2 years ago
Alessandro Toia 9eb8447e14 Check if param gamepad_battery is enabled 2 years ago
FlightlessMango 17d4c1dd4a amdgpu: use gtt_used for APUs 2 years ago
jackun f0177703ea
Rename to `frame_count` for consistency 2 years ago
FlightlessMango f9cfdeb080 Add gpu throttling status
Co-authored-by: Martin Roukala <martin.roukala@mupuf.org>
2 years ago
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
2 years ago
Alessandro Toia 06e3e9f663 Remove frametime when using fps_only param 2 years ago
FlightlessMango 66876b79f5 fix typo in fan element 2 years ago
FlightlessMango 65e70c9cfb fan param 2 years ago
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>
2 years ago
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>
2 years ago
jackun a13b041d1d
Fps limit: simplify converting frame time back to fps 2 years ago
jackun d2d6787568
Cleanup some header inclusions 2 years ago
jackun bac50e42d5 Add frame count 2 years ago
FlightlessMango 8b801e8435 don't set hide_fsr_sharpness with full 2 years ago
FlightlessMango 0402fa4ab5 mangoapp: fsr_steam_sharpness 2 years ago
FlightlessMango 3f2db318c5 Some fixes for windows compiling 2 years ago
Alessandro Toia 9b668babdc gamepad: add bool is_charging 2 years ago
Alessandro Toia 74b328d209 gamepad: add option to disable icon and show capacity instead 2 years ago
Alessandro Toia 5c92c32491 add gamepad_battery to legacy elements 2 years ago
Alessandro Toia 4be3ba20c2 GAMEPAD: add battery reporting for gamepad devices
(xone,xpadneo,ds4,ds5,switch)
2 years ago
FlightlessMango 68f40c56cc only shrink frametime graph on mangoapp 2 years ago
jackun e555a942fb
Use single IO stats instance 2 years ago
FlightlessMango 5cdedc4671 mangoapp: gamescope debug graphs 2 years ago
Alessandro Toia 056f7b0e29 Check if battery status is full 2 years ago
FlightlessMango 17867f2a6d Battery: show remaining if > 1.f 2 years ago
FlightlessMango b11714a326 mangoapp: hide fsr sharp when off 2 years ago
FlightlessMango cdcd08be44 battery remaining: don't show seconds at least by default 2 years ago
FlightlessMango 5508933c47 mangoapp: make fsr display a little prettier 2 years ago
Alessandro Toia 590f52d223 When battery is plugged in show plug icon 2 years ago
Alessandro Toia b158888d54 Add remaining time text to battery 2 years ago
FlightlessMango 39f6ae98ec Battery remaining time 2 years ago
FlightlessMango a9f811a207 mangoapp: gamescope fsr 2 years ago
FlightlessMango d71dd74685 Fix amdgpu watt and make it more granular 2 years ago
FlightlessMango fb1cae9cc9 display min/max frametime for period 2 years ago
Alessandro Toia af716ac830 Add fps_only to legacy_elements, fixes #674 2 years ago
flightlessmango 1f94e0af4d
Merge pull request #657 from ishitatsuyuki/quad
overlay: avoid quadratic behavior
2 years ago
FlightlessMango d5c409beed mangoapp: temporarily remove vram mhz 2 years ago
FlightlessMango 92151565fc mangoapp: disable some options 2 years ago
Alessandro Toia 6717ad9ecf Remove the FPS text from fps_only param 2 years ago
Alessandro Toia 15fc641fc3 Add fps_only param to disable showing the engine name 2 years ago
Tatsuyuki Ishi ada173e67f overlay: avoid quadratic behavior
Using a vector with erase(begin()) results in a copy of the full array
every time. This is inefficient and in the case of HUD graphs, was having
quadratic complexity which can noticeably affect performance.

This patch replaces most of the operations with an O(1) alternative,
keeping the total cost under a linear bound. While on this, also refactor
the size of graph array into a constant.
2 years ago
jackun 9b6a39dfe9
sed s/gnu_linux/linux/g 3 years ago
jackun 822e325d11
Add get_basename, fix win32 build
std::string::substr likes to throw
3 years ago
jackun 5767426192
Nope, ERROR level has higher priority, doh 3 years ago
jackun 866fd8bc24
Add per process memory usage (`procmem` etc) 3 years ago
jackun 355c521f12
Misc small clean ups and fixes 3 years ago
jackun 46c2183b5d
Use engine type enum in `engine_version()` 3 years ago
jackun 88d801bd7e
Move functions not directly related to vulkan from vulkan.cpp to overlay.cpp 3 years ago
jackun 750d2cddb5
Make engine type per instance 3 years ago
Alessandro Toia 0bc6d33a24 Fix frame spikes when using battery parameter 3 years ago
FlightlessMango 5330573c8c don't rely on std in engine detection 3 years ago
FlightlessMango a50bbbac22 add battery, fps_limit and resolution to legacy layout 3 years ago
flightlessmango 428ddf4e8a
Merge pull request #536 from flightlessmango/battery_test
Battery info and font awesome icons
3 years ago
Joshua Ashton 815097718e Use nanoseconds to calculate fps
No need to round this earlier on.

Removes an unnecessary implicit float -> double conversion in the calculation also
3 years ago
Alessandro Toia 5c48b4729c Change param to battery, add param for icon, hide power when plugged in 3 years ago
Alessandro Toia 500a65dd52 Only display battery stats if a battery is present 3 years ago
Alessandro Toia 8980ff46bc When plugged in change battery icon according to percent 3 years ago
Alessandro Toia b89b9b8109 Add ForkAwesome Icons 3 years ago
Alessandro Toia 1ab25220c6 Add param to check battery power and percent 3 years ago
Alessandro Toia 36ec9ef41a Add round_corners param 3 years ago
jackun a724e5e294
Fix engine name not showing with `engine_version` without `fps` also enabled 3 years ago
Lukáš Horáček 8f3ecb81df Divide IO stats by time difference since last update
This should prevent IO stats reaching high numbers when application stops responding resulting into MangoHud not updating.
3 years ago
FlightlessMango 48cf66630b Detect WineD3D 3 years ago
flightlessmango 185941a857 Fix some warnings 3 years ago
flightlessmango fc8eeaf0dc Lingering TableNextCell 3 years ago
flightlessmango e57be394d7
Merge pull request #428 from flgx16/swap
Add swap
3 years ago
FlightlessMango 90ce1c5778 ImGui wrap 4 years ago
Alessandro Toia 2c99138374 Remove custom_text_center from legacy and trailing spaces 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
FlightlessMango c54f8bec5d Hud elements exec function 4 years ago
Alessandro Toia c4925ac83e Allow multiple instances of custom_text_center and custom_text 4 years ago