Commit Graph

113 Commits

Author SHA1 Message Date
jackun
d62a4446f0
Update vulkan dispatch table generator
Hotch-potch of old and new Mesa's generator code to keep things minimal.
2023-04-03 13:12:33 +03:00
Emil Velikov
8c531b4833 mangohud: simplify variable handling
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2023-03-13 21:53:27 +01:00
Emil Velikov
f47f777e26 meson: unwrap ld_libdir_mangohud handling, remove ld_libdir_abs
Currently we have ld_libdir_abs which defaults to false. In that case,
both the mangohud shell wrapper, as well as the json files, reference
the DSOs directly without any path component.

This means that at run-time the dynamic linker, vulkan loader as well as
pressure-vessel will need to jump through hoops and figure out the
bitness of the DSO, whether one wants the 32 or 64bit one and even then
there will be confusing messages like:

fatal: /usr/lib/libMangoHud.so: wrong ELF class: ELFCLASS32

When set to true, as seen in the in-tree build.sh we'll append empty
path to LD_LIBRARY_PATH (bad), the full path with the $LIB token will be
used with LD_PRELOAD (good) and json files (bad).

Since we are generating separate json files, we can use the actual path
(while $LIB currently works, it's not really strict json nor documented
as supported). We can also drop the dubious LD_LIBRARY_PATH manipulation

This basically reinstates the prepend_libdir_vk=true option that was
dropped earlier.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2023-03-13 21:53:27 +01:00
Emil Velikov
491510d41c meson: produce per cpu_family json files
This will allow us to remove the $LIB from the json files and simplify
the related lib handling.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2023-03-13 21:53:27 +01:00
jackun
50720d2215
Install data files only if include_doc option is set 2022-07-14 15:32:05 +03:00
jackun
31d63255b0
Append colon only if LD_* env vars are set 2022-07-13 19:06:08 +03:00
jackun
f680c28f1f
Generalize control over socket so it works with OpenGL too 2022-05-23 18:07:39 +03:00
PMunkes
6a010d8eab Introduce FCAT overlay support
This introduces support to overlay FCAT markers on top of other HUD elements.
For more information about nVidia's FCAT tool see: https://nvidia.com/en-us/geforce/technologies/fcat/technology
This patch includes support for the existing parameter infrastructure and it is fully dynamic.

Squashed commit:

Refactor FCAT to use existing parameter handling infrastructure

With this patch the FCAT overlay should be hooked up into the normal
parameter handling infrastructure. This includes support for
configuration file options, which are also part of this commit.
2022-05-23 17:53:49 +03:00
jackun
f0177703ea
Rename to frame_count for consistency 2022-05-04 07:14:46 +03:00
jackun
bac50e42d5 Add frame count 2022-03-23 09:33:40 +02:00
Alessandro Toia
4026743fe3 add gamepad_battery & gamepad_battery_icon params to readme 2022-02-19 21:52:52 -08:00
xc8a
bbd75f0907 Correct miscellaneus to miscellaneous 2021-12-07 08:36:57 +02:00
jackun
62584ae4ff
Fix mangohud-setup.sh paths 2021-12-02 09:06:48 +02:00
jackun
729ccc83bd
Use spdlog's 'fmt' to format media player metadata
Usage:
  media_player_format={title};{artist};{album}

Semi-colon breaks to new line, might change.
2021-09-23 14:54:22 +03:00
Faalagorn
87e25a3038
Add missing and rearrange options in .conf
Added missing options and rearranged the way they appear under legacy layout plus minor fixes:
* Added some default values after `=`
* Commented out options with default values
* Unified style
2021-09-23 14:54:16 +03:00
jackun
361641382c
[build.sh] Attempt to fix wrong 32bit lib dir on non-Arch distros 2021-08-08 17:08:36 +03:00
jackun
866fd8bc24
Add per process memory usage (procmem etc) 2021-08-07 15:56:27 +03:00
FlightlessMango
370a2d5da6 Only use MANGOHUD=1 in script 2021-06-08 18:28:54 +02:00
jackun
afa50a17c4
[OpenGL] Add gl_size_query, gl_bind_framebuffer, gl_dont_flip options for workarounds
`gl_size_query = viewport` - specify what to use for getting display size. Options are "viewport", "scissorbox" or disabled. Defaults to using glXQueryDrawable.
`gl_bind_framebuffer = 0` - (re)bind given framebuffer before MangoHud gets drawn. Helps with Crusader Kings 3.
`gl_dont_flip = 1` - don't swap origin if using GL_UPPER_LEFT. Helps with Ryujinx.
2021-03-30 05:33:11 +03:00
jackun
a27984f343
Delete unused shell scripts 2021-02-03 10:37:32 +02:00
jackun
53cca5e723
Merge remote-tracking branch 'origin/master' into develop 2021-02-03 10:37:01 +02:00
freddii
2bbb7174e3 fixed typos 2021-02-03 09:24:40 +02:00
flightlessmango
8aa299630c Disable by default some vulkan layers that cause issues 2021-01-11 12:27:52 +01:00
Lukáš Horáček
f11a49ae8b
Add swap 2020-12-13 11:07:17 +01:00
Alessandro Toia
75d9e51445 Remove custom_header, add new params custom_text_center and custom_text 2020-12-08 17:02:50 -08:00
Alessandro Toia
db82ed0a1d Add documentation for custom_header param 2020-12-07 18:35:08 -08: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
Faalagorn
1ebb7b1e17
ManoguHud.conf: add some parameters and fix typos
* Added (commented out `fps_sampling_period`, `version` and `engine_version`)
* Commented out `legacy_layout` by default and added `=false` if one want to enable new layout
* Unified VSync, FPS, RAM and other minor names while at it
* Added space after comments sign for options that were missing it to unify formatting
2020-11-29 18:15:56 +01:00
FlightlessMango
18c20687d4 Merge branch 'develop' into master 2020-11-28 17:23:54 +01:00
Alessandro Toia
56a5cae2f7 Added new params to config file 2020-11-27 14:12:11 -08:00
jackun
6a5cd38127
Meson option to have absolute paths in LD_PRELOAD 2020-11-27 17:44:22 +02:00
FlightlessMango
3827fe96d4 Add autostart_log param 2020-11-27 15:12:38 +01: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
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
Alessandro Toia
92146c5833 Add frametime param to enable/disable frametime data next to fps 2020-11-16 15:44:19 -08:00
jackun
60ffab4350
Add no_small_font option for unified font size 2020-11-16 13:12:43 +02:00
FlightlessMango
8349479026 Document cpu_mhz and cpu_load_change 2020-11-13 22:22:01 +01:00
Lukáš Horáček
3726c90c7a
Add cpu_power 2020-11-12 22:27:35 +01:00
jackun
b177b2ac1f
Partial revert 63b50abede 2020-11-10 09:32:24 +02:00
jackun
9974992f7a
Some distros annoyingly prefix tls/[x86_64|i686] with arch triplet 2020-10-22 19:22:54 +03:00
jackun
0bc9949af9
Default toggle FPS limit to Shift_L+F1, update README and config file 2020-09-19 13:21:07 +03:00
jackun
63b50abede
Try out tls/x86_64, tls/i686 for less symlinking 2020-09-11 10:47:26 +03:00
Hunter Peavey
57e99c46eb
Update readme 2020-09-08 00:20:34 -07:00
Hunter Peavey
0e48cd1d17
Add output_folder config option to MangoHud.conf 2020-09-07 17:09:10 -07:00
RickAndTired
b163fa6a22
Cleanup of line 28 (tar xf MangoHud-package.tar) (#156)
This would cleanup the extraction of MangoHud-package.tar
Line 28:     [ "$UID" -eq 0 ] || tar xf MangoHud-package.tar
2020-08-25 20:42:43 +03:00
jackun
a7db4276e3
Don't force bash usage in launcher script 2020-08-24 17:50:05 +03:00
jackun
b4efc72815
Typo with "Shift" 2020-08-19 12:41:36 +03:00