FlightlessMango
0964f517b7
Change LogData previous to uint64_t
4 years ago
jackun
d93a21589e
Find cpu temp sensor input by label or fallback to first `tempN_input`
4 years ago
FlightlessMango
927fee0f59
No need to add version for nvidia twice
4 years ago
FlightlessMango
2e1861ea09
Changed elapsedlog to int64_t
4 years ago
jackun
40255b62f9
Fix get_device_name, don't substr if no '[' in gpu name
4 years ago
jackun
c25082b1dd
Fix blacklist array entries count
4 years ago
jackun
2622270e5c
Init remote control params even if blacklisted
4 years ago
jackun
a8f01a75e6
Use std::array for blacklist
...
More annoying to add entries but maybe more streamlined
4 years ago
jackun
a27ee0dc39
Generalize initial metadata error message
4 years ago
jackun
d694a61d21
Add `media_player_name` and `media_player_color` params
...
Allows to set "main" media player and text color
4 years ago
jackun
6c2b00ffb7
Append driver version
4 years ago
jackun
768297b430
[editorconfig] Apply whitespace rules
4 years ago
FlightlessMango
bc0a0aa53e
No need to save deviceName for later
4 years ago
jackun
2308a4228a
Fix vulkan device name
4 years ago
jackun
bb9721fe87
[OpenGL] Check if SRGB is enabled and Render ImGui in linear colorspace
4 years ago
FlightlessMango
31b01aab9f
Uncommented most of prop.driverVersion code
4 years ago
FlightlessMango
1750c43716
No need to convert deviceID twice
4 years ago
FlightlessMango
848b296477
Display vulkan driver
...
Co-authored-by: Georg Lehmann <dadschoorse@gmail.com>
4 years ago
FlightlessMango
f3422af562
Param gpu_name
4 years ago
FlightlessMango
1ddcc531ff
Get device name from pci.ids and display it
4 years ago
FlightlessMango
ed62155310
Parse pci.ids
...
Co-authored-by: jackun <jack.un@gmail.com>
4 years ago
FlightlessMango
a2cc14f738
Get deviceID
4 years ago
jackun
beee2b08c7
[OpenGL] Add glXSwapBuffersMscOML and disable XGetGeometry
4 years ago
jackun
9d1b548f69
Merge branch 'master' into develop
4 years ago
FlightlessMango
3f4949f593
Added top-center overlay position
4 years ago
FlightlessMango
03c9d1cd90
We don't need two vk_enum_to_str in shared_library
4 years ago
FlightlessMango
70d7ea4948
Add mangohud_version to shared_library
4 years ago
FlightlessMango
9cf6c502d2
Missing brackets for versions in render_imgui
4 years ago
FlightlessMango
e170e64f9c
[Params] Version option
4 years ago
FlightlessMango
0eaba7bb6c
Removed obsolete license from params
4 years ago
FlightlessMango
5ee573730a
Removed obsolete license from meson.build files
4 years ago
jackun
0ab53a1c06
Move MANGOHUD_PCI_DEV to config file param 'pci_dev'
...
Relax format requirements as long as it loosely resembles 'domain🚌 slot.func' format.
4 years ago
FlightlessMango
bff9958284
Changed pthreads to std::thread
4 years ago
Sporif
c61d25da04
Simplify 'is_blacklisted' function
4 years ago
Sporif
1e1dcd3a98
Fix vulkan driver version shown for Nvidia and Intel on Windows
4 years ago
jackun
8b13f8db7c
Blacklist Final Fantasy XIV launchers
4 years ago
jackun
29e5c4e460
Show device's name and vulkan driver version
4 years ago
jackun
8b855e3251
Fix mul/div order when normalizing io stats to sample per second as `fps_sampling_period` is also an integer.
4 years ago
jackun
d8264c485f
[OpenGL] Fixed version check mistakenly testing for GL 4.0+ instead of 3.2+ to enable ImGuiBackendFlags_RendererHasVtxOffset, leaving 3.2 contexts without it. (ocornut#3119, ocornut#2866, ocornut#2852)
4 years ago
jackun
22ee56def5
[OpenGL] Use 32bit font texture until someone figures out why 8-bit looks worse
4 years ago
jackun
0271aa6368
[OpenGL] Track threads with context, but might as well ignore glXMakeCurrent(NULL, NULL) calls probably
5 years ago
jackun
79e4c5223a
In C-only apps, std::cerr and friends can be uninitialized
5 years ago
jackun
934dc31e44
Add utility lib with dlsym hooking
5 years ago
jackun
ebdaa901b9
Merge pull request #131 from Sporif/blacklist_v2
...
Blacklist: Add OpenGL and fix `mangohud steam`
5 years ago
Danilo Spinella
b6340c832a
Add include for dlopen flags, fix build on musl
...
RTLD_DEEPBIND is not defined on musl based systems, add a check
before using it.
5 years ago
Danilo Spinella
fb64b2ae0e
Add __ELF_NATIVE_CLASS to musl systems
5 years ago
Danilo Spinella
728fc9fe56
dbus: Add missing include
5 years ago
jackun
86f8ebed30
Trying to find XNVCtrl's display by iterating through 16 displays.
5 years ago
jackun
6caa4a5173
Try load XNVCtrl as "libXNVCtrl.so.0"
...
Seems not all distro symlink also to libXNVCtrl.so
5 years ago
Sporif
61ef9244e9
Disable dlsym hooking by default and fix LD_PRELOAD propagation to new processes
...
This allows `mangohud steam` to work
5 years ago
Sporif
d1e90b5bec
[OpenGL] Add blacklist functionality
5 years ago
Sporif
c4a00704cf
Separate out blacklist implementation
5 years ago
Georg Lehmann
1eca184157
Vulkan Overlay: Don't try to change the image layout to present twice
...
The render pass already does the transition.
The pipeline barrier is still needed to transfer the queue family ownership.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3740 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3740 >
5 years ago
jackun
efed107af6
[meson] check void* size once and better-ish xnvctrl checks
5 years ago
jackun
cf5eb9e9a5
ifdef-guard dbus_info.h include
5 years ago
jackun
ad0f010951
Don't print that nvmlDeviceGetHandleByPciBusId failed if it wasn't even called
5 years ago
jackun
723c6bedeb
Fix `init_x11` return value and X11/XNVCtrl logic checks
5 years ago
jackun
88188ee1da
[dbus] Generalize a bit more but still give Spotify special treatment, keep track of 'org.mpris.MediaPlayer2' service providers
...
Keeps and draws spotify's and other player's metadata separately.
Keep track of 'org.mpris.MediaPlayer2' service providers so when
a player that was the last metadata sender quits, we can stop
showing its metadata on overlay.
5 years ago
jackun
7e5afe96bb
Add dbus_message_get_sender to dbus loader
5 years ago
jackun
bb4b78ada0
[OpenGL] Spam terminal a little less with version strings
5 years ago
jackun
f35e49defa
[OpenGL] Merge "shared" files back to imgui_hud.cpp
5 years ago
jackun
b40fb95a04
[OpenGL] Better version parsing and fix gl version checks for vertex arrays
5 years ago
FlightlessMango
d6314da8b2
Merge branch 'master' into develop
5 years ago
jackun
2383ba26fc
Tell GCC to stop exporting static library functions
...
Should fix crashes where games using Dear ImGui link to ours.
5 years ago
flightlessmango
0f695d76c7
Merge pull request #119 from andrealmeid/log_to_mem
...
Write log in a memory buffer and periodically write it in disk
5 years ago
jackun
6576a0a09c
Print NVML return code as string
5 years ago
jackun
a9311bb578
Allow to specify gpu with pci bus id by setting env var `MANGOHUD_PCI_DEV=xxxx:xx:xx:x` where x's are "domain 🚌 slot.function"
5 years ago
jackun
e5a256bfc0
Move DBus init to overlay_params so it can be enabled/disabled on the fly from a single place
5 years ago
jackun
d81dc7936a
[OpenGL] Use glXQueryDrawable if XGetGeometry fails
5 years ago
jackun
ff3c58c9c5
[OpenGL] Change glXMakeCurrent return type to int just in case and convert missed #ifdefs
5 years ago
Stephan Lachnit
f860418e7e
Allow system NVML to be used
...
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
5 years ago
André Almeida
f07aea54b6
logging: check if duration is enabled before checking if it has expired
...
If we check if log_duration is enabled before checking if it has expired
we can save some math and comparison instructions on every log write.
5 years ago
André Almeida
0a942512e9
logging: don't sleep if time is over
5 years ago
André Almeida
0303f8de28
logging: write log to a memory buffer
...
Instead of writing every line of the log to the file (and, consequently,
to the disk), write to a memory buffer first and after the log finishes
flush from memory to disk. This improve the performance of the tool, since
it avoids making the program blocked by disk IO.
5 years ago
jackun
f3f04f3f78
Print dlerror() in lib loaders
5 years ago
jackun
780ea7c89b
[OpenGL] Use GLAD instead on gl3w and hook EGL
5 years ago
jackun
772ab6aa5b
[OpenGL] Don't exit if function is not found, it probably isn't catastrophic
5 years ago
André Almeida
4830268a11
logging: fix indentation
5 years ago
jackun
a6bfa712e3
Do a sanity check for XNVCtrl and GLX headers
5 years ago
FlightlessMango
d454ff43a2
Hide all hud elements on no_display
5 years ago
jackun
e95a96d9f0
If used for other things than just reading sysfs files, xfs/jfs need stat() for inode type
5 years ago
jackun
0db804aa01
Don't free DBusError if it was never inited because dbus_error_free() is nullptr too
5 years ago
jackun
421146b822
Don't reinit dbus manager
5 years ago
jackun
0a27e0a447
Clear all metadata strings in case other mpris-compatible media players don't have them all
5 years ago
jackun
8024736253
Add DBus loader, combined ticker for Spotify metadata
5 years ago
FlightlessMango
d975278396
Dbus with spotify
5 years ago
jackun
cbb46fa21b
Also call default constructor for libnvctrl_loader
5 years ago
Stephan Lachnit
0998d33d72
Use Vulkan-Headers module via wrap
...
This commit replaces the git submodule for the Vulkan headers with meson subproject using wrap.
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
5 years ago
jackun
8cd3172335
[OpenGL] Separate GLX out from shareable code so wayland sessions can just use EGL, hopefully
5 years ago
jackun
2f034c6d1e
Use X11 loader functions instead of linking to X11 libs
5 years ago
jackun
71b37906da
Shared X11 intialization functions
5 years ago
jackun
329b5d66c2
Add X11 loader
5 years ago
jackun
108bca7d4f
Don't include X11 headers in overlay_params.h
5 years ago
jackun
bd9d9650a0
Move `dlsym` hook out from inject_glx.cpp
5 years ago
jackun
0a36578adf
[OpenGL] Rename GLX loader functions
5 years ago
jackun
b2e6727b25
[OpenGL] Rename loader_gl.* to loader_glx.*
5 years ago
jackun
2e7d92e068
Move `real_dlsym` files out from `gl` subdir
5 years ago
jackun
e750173b51
[OpenGL] Check if X11 is enabled
5 years ago
Danilo Spinella
0373383581
Add x11/wayland feature switches, rename 'use_xnvctrl' to 'with_xnvctrl'
5 years ago
jackun
59113b3ae2
[OpenGL] Move ImGui functions to separate file
5 years ago