Alessandro Toia
1ab25220c6
Add param to check battery power and percent
2021-05-27 15:40:33 -07:00
FlightlessMango
a90c897feb
Check battery info
2021-05-27 15:40:33 -07:00
Alessandro Toia
d556e8e357
Improve Zink detection
2021-05-27 15:38:44 -07:00
Kira Bruneau
d8a1ddf253
meson: Add vulkan_datadir option ( #522 )
...
This option enables using system Vulkan headers when it doesn't share
the same datadir as MangoHud. This is specifically an issue in NixOS
where packages are built into their own isolated directories in
/nix/store.
For example:
/nix/store/9g28nz6zh484144mzw670bx82y1ka49a-vulkan-headers-1.2.162.0/share/vulkan/registry/vk.xml
This is currently worked around in the Nix package, by symlinking the
vulkan-headers into MangoHud's install directory:
5debc57760/pkgs/tools/graphics/mangohud/default.nix (L66-L70)
Although, this hack causes the vulkan-headers to be included as a
runtime dependency when they're only needed at build time.
I tried to figure out a way to resolve the datadir automatically, but
found that just adding a new option is probably the best solution for
the following reasons:
- The vulkan.pc file used to resolve dep_vulkan doesn't contain any
information about the datadir.
- The share directory could be resolved relative to the vulkan include
directory and that would solve the specific issue for Nix, but the
datadir could be installed anywhere and that wouldn't be a general
solution.
- I couldn't find a way to resolve the data dir using the XDG Base
Directory Specification because meson doesn't provide a way to access
the necessary environment variables.
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
2021-05-11 18:44:25 +03:00
Alessandro Toia
36ec9ef41a
Add round_corners param
2021-04-29 21:06:22 -07:00
jackun
47865573a8
Add option to prepend libdir to library's path in vulkan manifest
...
"\$LIB" technically breaks json but on the other hand vulkan loader
currently doesn't handle "\\$LIB"
Help with issue #468
2021-04-18 23:03:24 +03:00
jackun
765024227c
[OpenGL] Framerate limit in eglSwapBuffers
2021-04-17 22:29:22 +03:00
Alessandro Toia
ddfcb01c30
Add detection of Zink
2021-04-15 15:40:12 -07:00
jackun
a724e5e294
Fix engine name not showing with engine_version
without fps
also enabled
2021-04-12 22:42:38 +03:00
jackun
34f964eab9
Use aligned buffer size with vkMapMemory too
2021-04-08 00:46:56 +03:00
Alessandro Toia
856c333e09
Fix wine param not properly detecting proton experimental
2021-04-01 17:14:21 -07:00
Alessandro Toia
272b035ca8
Fix wine param not detecting proton experimental
2021-04-01 16:59:19 -07:00
jackun
0f6ead57d7
[OpenGL] Bind framebuffer for all GL ES versions
2021-03-31 18:51:34 +03:00
jackun
e62d6e3337
[OpenGL] Save/restore last GL_DRAW_FRAMEBUFFER if using gl_bind_framebuffer
2021-03-31 18:39:23 +03:00
jackun
714f3853f7
[OpenGL] Support apitrace in debug build
...
Try to load `glxtrace.so` instead of `libGL.so.1`.
Assumes `glxtrace.so` lives outside of usual library paths and is only preloaded.
2021-03-31 17:52:38 +03:00
jackun
4ee9dcd852
OpenGL workarounds
2021-03-30 05:33:17 +03: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
54d6a8e889
Unset LD_LIBRARY_PATH if using absolute paths in LD_PRELOAD
...
$LIB in LD_LIBRARY_PATH makes `ldconfig` unhappy.
2021-03-24 19:55:32 +02:00
jackun
ea07d1e080
Remove ".exe" from wine executable's name
...
Fixes ad4e1ac35f
2021-03-22 21:26:11 +02:00
jackun
ad4e1ac35f
Try to get wine executable's name from /proc/self/comm
2021-03-20 14:37:12 +02:00
vesterlay
fb672833da
Update build.sh
2021-03-19 16:29:11 +02:00
KlfJoat
18fb0d5649
Fix var typo in unrecognized command argument feedback
2021-03-19 16:29:11 +02:00
jackun
4d4444e1c5
Allow overriding config file options with MANGOHUD_CONFIG if using legacy layout
2021-03-16 23:45:43 +02:00
jackun
4f3133c5da
Fix log file using wine-preloader
etc instead of executable's filename
2021-03-16 22:32:25 +02:00
Stephan Lachnit
4a43896d99
imgui 1.81
...
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
2021-03-15 18:48:44 +02:00
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.
2021-03-13 17:10:25 +02:00
jackun
30cdc912a8
Rework blending equation to preserve alpha in output buffer
...
bda12e5fdd
2021-03-07 23:42:54 +02:00
jackun
118c54072f
[OpenGL] Disable primitive restart
2021-03-06 23:01:50 +02:00
jackun
8e7564ab1a
[OpenGL] Disable stencil test
2021-03-06 22:59:31 +02:00
jackun
bdd87f5eff
Use SetTexID instead
2021-03-06 22:58:06 +02:00
jackun
76b571bc11
[OpenGL] Fix glClipControl(GL_UPPER_LEFT) rendering
2021-03-06 22:16:59 +02:00
Managor
bc2d5556d7
Update README.md
...
Minor typo correction
2021-03-03 09:07:53 +02:00
jackun
6c737dc734
Round up buffer allocation sizes to nonCoherentAtomSize
.
...
For some Vega APUs. Or don't use VK_WHOLE_SIZE?
2021-03-02 20:47:02 +02:00
jackun
f77a73ce8a
Fix scoped_lock clash with >= c++17
2021-03-02 13:01:04 +02:00
jackun
3e77dd6e0b
[OpenGL] Add eglSwapBuffers to hook list
2021-02-20 22:37:31 +02:00
jackun
6769ae96fa
[OpenGL] Explicitly include dlfcn.h
2021-02-20 14:57:26 +02:00
FlightlessMango
6286313478
MSVC building fixes
2021-02-20 11:58:11 +01:00
jackun
8b2255b35c
Fix crash on destroying NULL swapchain
...
Vulkan spec allows calling vkDestroySwapchainKHR with VK_NULL_HANDLE swapchain.
mesa MR#5616
2021-02-16 11:23:29 +02:00
FlightlessMango
cc83f2878e
Try to guess mesa version
2021-02-14 18:18:04 +01:00
FlightlessMango
76fb1ec3cb
Remove lsof as dependency
2021-02-14 18:14:42 +01:00
FlightlessMango
e13e98e03a
Fixed debug output of gpu name
2021-02-12 16:04:48 +01:00
FlightlessMango
f8fa73daf2
Get logged gpu name from pci_ids instead
2021-02-12 15:00:01 +01:00
FlightlessMango
66a07d77ba
Use read_line for checking cpu sched
2021-02-10 10:39:53 +01:00
FlightlessMango
3261d12ad7
Add checking cpu scheduler
2021-02-10 09:16:51 +01:00
FlightlessMango
1a8689fbba
Add gpu power to logs
2021-02-07 07:18:54 +01:00
flightlessmango
af57e0cb2d
Merge pull request #445 from stephanlachnit/p/build-source-rework
...
imgui wrap from WrapDB and build-source.sh rework
2021-02-04 19:45:15 +01:00
jackun
41034b1089
[OpenGL] Return -1 instead for glXSwapBuffersMscOML if it is null
2021-02-03 19:01:31 +02:00
jackun
439ff716c2
[OpenGL] Some nullptr guards
...
Maybe helps issue #355
2021-02-03 18:52:53 +02:00
flightlessmango
206c55ef2e
Bump version to v0.6.2
2021-02-03 16:16:56 +01:00
flightlessmango
73b7c58724
Clean subprojects in build.sh clean
2021-02-03 11:36:27 +01:00