Commit Graph

205 Commits (master)

Author SHA1 Message Date
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
FlightlessMango 05c09e3fdf Only draw custom_text_center if it's not empty 4 years ago
Lukáš Horáček f11a49ae8b
Add swap 4 years ago
Alessandro Toia 80004d3fe0 Chnage fps color based on fps value 4 years ago
Alessandro Toia 75d9e51445 Remove custom_header, add new params custom_text_center and custom_text 4 years ago
Alessandro Toia 439f1266ba Remove custom_header background and add newline after 4 years ago
Alessandro Toia 576f9887e0 Add custom_header to legacy_elements, make sure custom_header is always shown first 4 years ago
Alessandro Toia c479694735 Use SetCursorPosX() instead of SameLine() to center text 4 years ago
Alessandro Toia b77517501c Add new param custom_header 4 years ago
FlightlessMango c20b06c851 Remove more ram related things for windows 4 years ago
Alessandro Toia 06f2c7dc1b Do not show fps_limit if unlimited 4 years ago
Alessandro Toia 4ada6d1036 Add show_fps_limit param 4 years ago
FlightlessMango c8d68be476 Add resolution param 4 years ago
Alessandro Toia ed0c7a344d Add new param 'core_load_change' to change colors of cpu core load depending on load % 4 years ago
FlightlessMango a4a5950ddf Make sure graphs have data without enabling elems 4 years ago
jackun fda43f5727
Use str_tokenize for multiple delimiters 4 years ago
FlightlessMango 27fee4f151 Prettying up hudelements::graphs 4 years ago
Alessandro Toia 8cad40cfac Change order of cpu/gpu load colors and data 4 years ago
FlightlessMango f3987ec65c Move frame_timings ms text to above 4 years ago
FlightlessMango 9124f0f26a Let graphs take up full content region 4 years ago
jackun 1e8487c991
Move color conversion to HudElements; move some overlay related functions back to overlay.cpp 4 years ago
flightlessmango ce6a87823b
Merge pull request #388 from flgx16/cpu_power
Add cpu_power
4 years ago
Alessandro Toia 92146c5833 Add frametime param to enable/disable frametime data next to fps 4 years ago
jackun 7a2a2eafc9
Clear already parsed HUD elements when using legacy layout 4 years ago
Lukáš Horáček 3726c90c7a
Add cpu_power 4 years ago
FlightlessMango 00c9841ff6 Histogram option for all graphs 4 years ago
FlightlessMango 553bf50e6a Added cpu_mhz param 4 years ago
FlightlessMango 366de9a9dd Legacy elements 4 years ago
FlightlessMango 0c57171497 Make sure gpu_temp is being logged 4 years ago
FlightlessMango 8ebc56d4f7 CPU/GPU Temp graphs 4 years ago
FlightlessMango cc38924997 Added graphs 4 years ago
FlightlessMango 6e7747c73c Add sorting for env var 4 years ago
jackun dbfbd05ecf Add `media_player` to HudElements 4 years ago
FlightlessMango ee7f7058c2 No need to use HudElements object in sort_elements 4 years ago
FlightlessMango aebd3353ab Move most hud elements into HudElement functions 4 years ago
FlightlessMango 378cc1e089 Push params to HudElements options 4 years ago