Commit Graph

1258 Commits

Author SHA1 Message Date
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.
2020-04-09 15:50:39 -03:00
jackun
f3f04f3f78
Print dlerror() in lib loaders 2020-04-09 21:26:00 +03:00
jackun
780ea7c89b
[OpenGL] Use GLAD instead on gl3w and hook EGL 2020-04-09 21:24:37 +03:00
medusalix
4906140a49 Fix Debian os-release name 2020-04-09 14:03:35 +02:00
medusalix
f9b5e233ed Improve os-release parsing 2020-04-09 14:03:11 +02:00
jackun
772ab6aa5b
[OpenGL] Don't exit if function is not found, it probably isn't catastrophic 2020-04-09 11:30:51 +03:00
André Almeida
4830268a11 logging: fix indentation 2020-04-08 15:14:13 -03:00
jackun
b4163b744b
[build.sh] openSuse: add python3-pip and ninja to deps 2020-04-07 02:20:49 +03:00
jackun
a6bfa712e3
Do a sanity check for XNVCtrl and GLX headers 2020-04-05 16:11:29 +03:00
jackun
08859b83c1
[build.sh] openSuse: pip install meson>=0.54, add dbus-1, warn about libXNVCtrl-devel needing extra repo 2020-04-05 16:10:30 +03:00
jackun
08d8ece7be
[build.sh] Ubuntu: add dbus and force pip to install meson>=0.54 2020-04-05 15:11:16 +03:00
FlightlessMango
0cb3bbef50 [Build script] Corrected name for Manjaro Linux 2020-04-05 14:00:04 +02:00
FlightlessMango
fea9980d06 [Build script] *Buntu no longer needs libx11-dev 32bit 2020-04-05 13:47:27 +02:00
FlightlessMango
d454ff43a2 Hide all hud elements on no_display 2020-04-05 13:20:15 +02:00
jackun
e95a96d9f0
If used for other things than just reading sysfs files, xfs/jfs need stat() for inode type 2020-04-05 14:02:15 +03:00
jackun
0db804aa01
Don't free DBusError if it was never inited because dbus_error_free() is nullptr too 2020-04-05 13:56:14 +03:00
jackun
421146b822
Don't reinit dbus manager 2020-04-05 13:48:16 +03:00
jackun
125cda222f
Add media_player param to readme/conf 2020-04-05 00:15:15 +03:00
jackun
0a27e0a447
Clear all metadata strings in case other mpris-compatible media players don't have them all 2020-04-05 00:12:01 +03:00
jackun
8024736253
Add DBus loader, combined ticker for Spotify metadata 2020-04-04 23:50:57 +03:00
FlightlessMango
d975278396
Dbus with spotify 2020-04-04 20:51:53 +03:00
jackun
cbb46fa21b
Also call default constructor for libnvctrl_loader 2020-04-04 20:46:54 +03:00
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>
2020-04-04 17:49:02 +03:00
Stephan Lachnit
fbb4393231
Add builddir/ to gitignore
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
2020-04-04 17:40:53 +03:00
jackun
8cd3172335
[OpenGL] Separate GLX out from shareable code so wayland sessions can just use EGL, hopefully 2020-04-02 03:09:49 +03:00
jackun
2f034c6d1e
Use X11 loader functions instead of linking to X11 libs 2020-04-02 03:09:49 +03:00
jackun
71b37906da
Shared X11 intialization functions 2020-04-02 03:08:53 +03:00
jackun
329b5d66c2
Add X11 loader 2020-04-01 22:54:48 +03:00
jackun
108bca7d4f
Don't include X11 headers in overlay_params.h 2020-04-01 15:37:42 +03:00
jackun
bd9d9650a0
Move dlsym hook out from inject_glx.cpp 2020-04-01 15:37:19 +03:00
jackun
0a36578adf
[OpenGL] Rename GLX loader functions 2020-04-01 15:37:08 +03:00
jackun
b2e6727b25
[OpenGL] Rename loader_gl.* to loader_glx.* 2020-04-01 15:16:44 +03:00
jackun
2e7d92e068
Move real_dlsym files out from gl subdir 2020-04-01 14:39:51 +03:00
jackun
e750173b51
[OpenGL] Check if X11 is enabled 2020-04-01 11:46:08 +03:00
Danilo Spinella
0373383581
Add x11/wayland feature switches, rename 'use_xnvctrl' to 'with_xnvctrl' 2020-04-01 11:39:57 +03:00
jackun
59113b3ae2
[OpenGL] Move ImGui functions to separate file 2020-04-01 11:28:16 +03:00
jackun
c3e50db2f4
[OpenGL] Import glXQueryDrawable just in case 2020-04-01 11:27:27 +03:00
jackun
accac3a015
[OpenGL] Import XGetGeometry 2020-04-01 11:27:27 +03:00
jackun
ebe23d3431
[OpenGL] Rename inject.cpp to inject_glx.cpp in preparation for separating X11 related functions 2020-04-01 11:27:04 +03:00
jackun
042267f26b
Update API version to 1.2.135 in manifest 2020-03-31 00:13:53 +03:00
jackun
186e40d702
[build.sh] Allow passing extra options to meson configure with CONFIGURE_OPTS env var 2020-03-30 22:50:38 +03:00
jackun
049e960589
Add 'use_xnvctrl' feature to allow building without libXNVCtrl support 2020-03-30 22:48:56 +03:00
jackun
fd6e742474
[build.sh] Fix dependency installation by 'set +e' beforehand 2020-03-30 22:26:08 +03:00
jackun
40c112b80c
Merge pull request #111 from stephanlachnit/patch/builddir
Add builddir to gitignore
2020-03-30 19:07:49 +03:00
Stephan Lachnit
b763dd852f
Add builddir/ to gitignore
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
2020-03-30 00:41:21 +02:00
flightlessmango
e1a364bf2f
Merge pull request #109 from Faalagorn/patch-1
Add missing parameters to MangoHud.conf
2020-03-29 16:44:17 +02:00
Faalagorn
5d075b469b
Add missing parameters to MangoHud.conf
Adds missing parameters from #95 as well as `arch` parameter in develop branch
2020-03-29 15:47:31 +02:00
jackun
5afbe10005
[OpenGL] Restore ImGui's context to previously saved one, duh 2020-03-29 01:54:57 +02:00
jackun
6eb2c9bc09
[OpenGL] Explicitly set ImGui's context and treat global context as foreign
Apps might be using Dear ImGui so keep our stuff separate from theirs.

Issue #107
2020-03-29 01:47:24 +02:00
jackun
f5e3f3b73b
[config] Add MANGOHUD_CONFIGFILE envvar for specific configuration file
Issue #104
2020-03-29 00:05:52 +02:00