FlightlessMango
c54f8bec5d
Hud elements exec function
2020-12-14 06:54:29 +01:00
Alessandro Toia
c4925ac83e
Allow multiple instances of custom_text_center and custom_text
2020-12-13 21:38:10 -08:00
FlightlessMango
05c09e3fdf
Only draw custom_text_center if it's not empty
2020-12-14 04:38:55 +01:00
Witold Baryluk
4f20da781d
Improve code for program name extraction
...
This cleans up the code, as well fixes the bug of not setting
program_name if the MANGOHUD_CONFIG env is specified.
Instead of global variable, that could be not-initialized
use a function to get a program name in logging.
While at it, revamp code and separate things into own functions,
and return by value, and make them easier to use / share code.
2020-12-13 11:35:40 +00:00
Lukáš Horáček
f11a49ae8b
Add swap
2020-12-13 11:07:17 +01:00
Alessandro Toia
c16332eddf
Less tr and grep to find driver version
2020-12-12 19:47:30 -08:00
Alessandro Toia
80004d3fe0
Chnage fps color based on fps value
2020-12-09 19:36:45 -08:00
Alessandro Toia
75d9e51445
Remove custom_header, add new params custom_text_center and custom_text
2020-12-08 17:02:50 -08:00
AlexxandreFS
fa433cb798
fix: cut --output-delimiter
2020-12-08 04:33:10 +00:00
Alessandro Toia
439f1266ba
Remove custom_header background and add newline after
2020-12-07 18:35:08 -08:00
Alessandro Toia
576f9887e0
Add custom_header to legacy_elements, make sure custom_header is always shown first
2020-12-07 18:35:08 -08:00
Alessandro Toia
c479694735
Use SetCursorPosX() instead of SameLine() to center text
2020-12-07 18:35:08 -08:00
Alessandro Toia
b77517501c
Add new param custom_header
2020-12-07 18:35:08 -08:00
Witold Baryluk
6a1028b17e
Fix some MESA inherited references in overlay params
...
MANGOHUD_CONFIG as used.
MANGOHUD printf prefix.
2020-12-07 19:22:36 +00:00
FlightlessMango
d54409b6b5
Don't need vulkan hooking in kiero
2020-12-06 04:51:20 +01:00
FlightlessMango
af0658e137
Change win config location to mangohud folder
2020-12-06 02:33:58 +01:00
FlightlessMango
1a86d3b241
Set dx_version var
2020-12-06 02:33:41 +01:00
FlightlessMango
3bc0f32a3b
Init all related renderTypes
2020-12-06 01:39:28 +01:00
FlightlessMango
079f700241
Make sure logger gets inited in win
2020-12-06 01:36:02 +01:00
Alessandro Toia
a061ca060f
__gnu_linux__ shouldn't be caps
2020-12-03 22:15:17 -08:00
Alessandro Toia
8e873fe547
Remove more "not" and "and" in if statments
...
Rename dbus_helpers.hpp to dbus_helpers.h
2020-12-03 22:00:18 -08:00
FlightlessMango
6ed47879e7
__gnu_linux__ shouldn't be caps
2020-12-04 05:48:32 +01:00
FlightlessMango
f375d94188
libgen.h not needed on win32
2020-12-04 04:55:15 +01:00
FlightlessMango
45c7ea0841
Include intrin.h for _ReturnAddress win32
2020-12-04 04:54:58 +01:00
flightlessmango
cfc0b74d1a
Merge pull request #418 from baryluk/patch-3
...
Perform updates of gpuInfo struct in more atomic way
2020-12-04 04:51:50 +01:00
FlightlessMango
ce7de641cf
Don't use "and" and "not" in if statements
2020-12-04 04:49:02 +01:00
FlightlessMango
d1af7c97ac
Removed lingering pthread.h
2020-12-04 04:46:14 +01:00
FlightlessMango
eef6d8974a
Only use popen/close on linux
2020-12-04 04:43:16 +01:00
FlightlessMango
c20b06c851
Remove more ram related things for windows
2020-12-03 21:26:00 +01:00
Alessandro Toia
06f2c7dc1b
Do not show fps_limit if unlimited
2020-12-01 19:43:55 -08:00
Witold Baryluk
e712a26eff
Perform updates of gpuInfo struct in more atomic way
...
The issue is that value might be set to 0, or original miliC (i.e. 35000),
while the other thread is reading it from the memory.
Instead using single writes to the target location,
only with intended end value.
This is a not a full proper fix (like using mutex between overlay and the thread
doing hw info update), but should alleviate issue of logging sometimes
having value 0, or original value of miliC for temperature.
2020-12-01 05:32:37 +00:00
Alessandro Toia
4ada6d1036
Add show_fps_limit param
2020-11-30 18:43:12 -08:00
FlightlessMango
c8d68be476
Add resolution param
2020-11-30 21:11:38 +01:00
Alessandro Toia
ed0c7a344d
Add new param 'core_load_change' to change colors of cpu core load depending on load %
2020-11-29 16:10:56 -08:00
Witold Baryluk
558b8eb093
Properly initialize file pointers to null
...
If in `init_cpu_power_data_k10temp` we fail to initialize all paths,
and fail initialization, then in the destructor, we will most likely
pass invalid value to the `fclose`.
2020-11-29 15:27:46 +02:00
Witold Baryluk
26262e24ff
Improve initialization logic for cpu.cpp
...
Use smart pointers.
Get rid of gotos and labels.
2020-11-29 15:27:22 +02:00
Alessandro Toia
03bd71d145
Add missing add_blacklist for OpenGl apps
2020-11-27 16:14:38 -08:00
jackun
e0f79d9435
Escape spaces in file names for wordexp
v2 but just append to stringstream
2020-11-27 23:48:28 +02:00
FlightlessMango
a4a5950ddf
Make sure graphs have data without enabling elems
2020-11-27 19:15:51 +01:00
jackun
0309b6bbb9
Escape spaces in file names for wordexp
2020-11-27 20:00:39 +02:00
jackun
fda43f5727
Use str_tokenize for multiple delimiters
2020-11-27 20:00:39 +02:00
FlightlessMango
27fee4f151
Prettying up hudelements::graphs
2020-11-27 18:49:13 +01:00
jackun
6a5cd38127
Meson option to have absolute paths in LD_PRELOAD
2020-11-27 17:44:22 +02:00
FlightlessMango
9af4ac546f
No need to convert cpu_load
2020-11-27 15:53:49 +01:00
FlightlessMango
4505bba6bd
Check if logger is active before autostarting
2020-11-27 15:12:38 +01:00
FlightlessMango
3827fe96d4
Add autostart_log param
2020-11-27 15:12:38 +01:00
jackun
ee2933bff5
Resize fonts
2020-11-26 22:52:10 +02:00
Alessandro Toia
8cad40cfac
Change order of cpu/gpu load colors and data
2020-11-25 17:39:02 -08:00
FlightlessMango
f3987ec65c
Move frame_timings ms text to above
2020-11-25 21:55:30 +01:00
FlightlessMango
9124f0f26a
Let graphs take up full content region
2020-11-25 21:55:17 +01:00
Alessandro Toia
d855dc6691
Also change delimiter for media_player_order to +
2020-11-24 19:55:47 -08:00
Alessandro Toia
6ee6663fb6
Change delimiter for cpu and gpu load change and color to +
2020-11-24 19:48:38 -08:00
Alessandro Toia
e4fe24a051
Use "+" as a delimiter for param blacklist
2020-11-18 18:46:54 -08:00
Alessandro Toia
221c355f15
Check if item exits before adding to blacklist
2020-11-18 17:07:43 -08:00
Alessandro Toia
ef05ab2f20
Parse blacklist with parse_str_tokenize
2020-11-18 16:19:00 -08:00
Alessandro Toia
7c80dc53ef
Allow users to add a new item to the blacklist from config file
2020-11-17 19:35:05 -08:00
jackun
0474c93800
Change change_on_load_temp
's current
param to unsigned
2020-11-17 20:25:20 +02:00
jackun
1e8487c991
Move color conversion to HudElements; move some overlay related functions back to overlay.cpp
2020-11-17 20:23:33 +02:00
FlightlessMango
44d5546ba5
Add param table_columns
2020-11-17 15:09:15 +01:00
flightlessmango
ce6a87823b
Merge pull request #388 from flgx16/cpu_power
...
Add cpu_power
2020-11-17 14:48:27 +01:00
flightlessmango
f91e4f9a33
Merge pull request #395 from gort818/no_ms
...
Add param to enable/disable fps milliseconds text
2020-11-17 14:43:29 +01:00
FlightlessMango
7e93453a77
Changed fps_limit's delimiter to +
2020-11-17 14:31:45 +01:00
Alessandro Toia
92146c5833
Add frametime param to enable/disable frametime data next to fps
2020-11-16 15:44:19 -08:00
jackun
7a2a2eafc9
Clear already parsed HUD elements when using legacy layout
2020-11-16 23:38:58 +02:00
FlightlessMango
e5015283a8
cellpadding_y param
2020-11-16 12:53:38 +01:00
jackun
60ffab4350
Add no_small_font
option for unified font size
2020-11-16 13:12:43 +02:00
Lukáš Horáček
02a34ba890
Fix cpu_mhz when core_load is disabled
2020-11-12 23:50:49 +02:00
Lukáš Horáček
3726c90c7a
Add cpu_power
2020-11-12 22:27:35 +01:00
FlightlessMango
00c9841ff6
Histogram option for all graphs
2020-11-12 03:35:01 +01:00
FlightlessMango
553bf50e6a
Added cpu_mhz param
2020-11-11 23:11:21 +01:00
jackun
3c75cc6c60
rm -fr whitespace around __gnu_linux__
2020-11-10 09:32:24 +02:00
FlightlessMango
366de9a9dd
Legacy elements
2020-11-09 19:38:43 +01:00
FlightlessMango
0c57171497
Make sure gpu_temp is being logged
2020-11-09 19:37:38 +01:00
FlightlessMango
8ebc56d4f7
CPU/GPU Temp graphs
2020-11-09 19:37:38 +01:00
FlightlessMango
cc38924997
Added graphs
2020-11-09 19:37:37 +01:00
FlightlessMango
6e7747c73c
Add sorting for env var
2020-11-09 19:35:45 +01:00
jackun
dbfbd05ecf
Add media_player
to HudElements
2020-11-09 19:35:44 +01:00
FlightlessMango
ee7f7058c2
No need to use HudElements object in sort_elements
2020-11-09 19:35:21 +01:00
FlightlessMango
aebd3353ab
Move most hud elements into HudElement functions
2020-11-09 19:35:20 +01:00
FlightlessMango
378cc1e089
Push params to HudElements options
2020-11-09 19:26:46 +01:00
jackun
7471d42cac
Fix dbus for GCC 5
2020-11-09 20:11:16 +02:00
flightlessmango
46a239855b
Merge pull request #380 from gort818/gradual_colors
...
Gradual colors for gpu & cpu load
2020-11-09 13:33:21 +01:00
flightlessmango
65b85e86b2
Merge pull request #376 from flgx16/fps-limit-fix
...
Fix for FPS limit breaking
2020-11-07 15:06:01 +01:00
FlightlessMango
fde20cac81
Collect total vram for Nvidia
2020-11-06 22:04:10 +01:00
Lukáš Horáček
06f8641363
Fix for FPS limit breaking
...
Fixes #127
2020-11-04 11:35:29 +01:00
Alessandro Toia
466fc1a008
If load is high set the defined high color
2020-11-03 10:14:47 -08:00
Alessandro Toia
2496ab3541
After parsing load colors make sure it has a size of 3
2020-11-03 10:14:47 -08:00
FlightlessMango
0a12632679
Gradual color change
2020-11-03 10:14:37 -08:00
Alessandro Toia
b75f2944a1
Add struct for gpu color change data
2020-11-03 10:12:52 -08:00
FlightlessMango
b9b20d1117
Remove render_mango as it's no longer needed
2020-11-02 13:56:52 +01:00
flightlessmango
e3354433ce
Merge pull request #358 from gort818/load_color
...
Change color depending on load
2020-10-22 05:45:02 +02:00
Alessandro Toia
ec322b556e
Formatting fixes, remove commented code
2020-10-20 21:14:04 -07:00
Alessandro Toia
76c2129ae2
Remove more unused variables
2020-10-20 20:46:35 -07:00
Alessandro Toia
3e446f7c11
Remove unused variables
2020-10-20 20:42:57 -07:00
Alessandro Toia
c53939587a
Consolidate gpu/cpu load value config
2020-10-19 22:11:26 -07:00
Alessandro Toia
daa23d49db
Consolidate cpu load color config
2020-10-19 21:06:10 -07:00
Alessandro Toia
e1269a18ff
Consolidate gpu load color config
2020-10-19 20:41:39 -07:00
Alessandro Toia
5e486df67f
Fix spacing
2020-10-06 16:59:47 -07:00
Alessandro Toia
17ae055161
Disable cpu/gpu load change from full param output
2020-10-06 16:53:27 -07:00
Alessandro Toia
dc0b3a9955
Set param defaults for load color change
2020-10-06 16:44:46 -07:00