Commit Graph

1061 Commits (370a2d5da6a33fb5dcf41d4b1d7d52419feeb06d)
 

Author SHA1 Message Date
FlightlessMango 370a2d5da6 Only use MANGOHUD=1 in script 3 years ago
jackun a0a57038c1
Fix redefinition of 'open'
musl pulls in fcntl.h from somewhere
3 years ago
Alessandro Toia d556e8e357 Improve Zink detection 3 years ago
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
3 years ago
Alessandro Toia 36ec9ef41a Add round_corners param 3 years ago
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
3 years ago
jackun 765024227c
[OpenGL] Framerate limit in eglSwapBuffers 3 years ago
Alessandro Toia ddfcb01c30 Add detection of Zink 3 years ago
jackun a724e5e294
Fix engine name not showing with `engine_version` without `fps` also enabled 3 years ago
jackun 34f964eab9
Use aligned buffer size with vkMapMemory too 3 years ago
Alessandro Toia 856c333e09 Fix wine param not properly detecting proton experimental 3 years ago
Alessandro Toia 272b035ca8 Fix wine param not detecting proton experimental 3 years ago
jackun 0f6ead57d7
[OpenGL] Bind framebuffer for all GL ES versions 3 years ago
jackun e62d6e3337
[OpenGL] Save/restore last GL_DRAW_FRAMEBUFFER if using `gl_bind_framebuffer` 3 years ago
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.
3 years ago
jackun 4ee9dcd852
OpenGL workarounds 3 years ago
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.
3 years ago
jackun 54d6a8e889
Unset LD_LIBRARY_PATH if using absolute paths in LD_PRELOAD
$LIB in LD_LIBRARY_PATH makes `ldconfig` unhappy.
3 years ago
jackun ea07d1e080
Remove ".exe" from wine executable's name
Fixes ad4e1ac35f
3 years ago
jackun ad4e1ac35f
Try to get wine executable's name from /proc/self/comm 3 years ago
vesterlay fb672833da Update build.sh 3 years ago
KlfJoat 18fb0d5649 Fix var typo in unrecognized command argument feedback 3 years ago
jackun 4d4444e1c5
Allow overriding config file options with MANGOHUD_CONFIG if using legacy layout 3 years ago
jackun 4f3133c5da
Fix log file using `wine-preloader` etc instead of executable's filename 3 years ago
Stephan Lachnit 4a43896d99 imgui 1.81
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
3 years ago
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.
3 years ago
jackun 30cdc912a8
Rework blending equation to preserve alpha in output buffer
bda12e5fdd
3 years ago
jackun 118c54072f
[OpenGL] Disable primitive restart 3 years ago
jackun 8e7564ab1a
[OpenGL] Disable stencil test 3 years ago
jackun bdd87f5eff
Use SetTexID instead 3 years ago
jackun 76b571bc11
[OpenGL] Fix glClipControl(GL_UPPER_LEFT) rendering 3 years ago
Managor bc2d5556d7 Update README.md
Minor typo correction
3 years ago
jackun 6c737dc734
Round up buffer allocation sizes to `nonCoherentAtomSize`.
For some Vega APUs. Or don't use VK_WHOLE_SIZE?
3 years ago
jackun f77a73ce8a
Fix scoped_lock clash with >= c++17 3 years ago
jackun 3e77dd6e0b
[OpenGL] Add eglSwapBuffers to hook list 3 years ago
jackun 6769ae96fa
[OpenGL] Explicitly include dlfcn.h 3 years ago
FlightlessMango 6286313478 MSVC building fixes 3 years ago
jackun 8b2255b35c
Fix crash on destroying NULL swapchain
Vulkan spec allows calling vkDestroySwapchainKHR with VK_NULL_HANDLE swapchain.

mesa MR#5616
3 years ago
FlightlessMango cc83f2878e Try to guess mesa version 3 years ago
FlightlessMango 76fb1ec3cb Remove lsof as dependency 3 years ago
FlightlessMango e13e98e03a Fixed debug output of gpu name 3 years ago
FlightlessMango f8fa73daf2 Get logged gpu name from pci_ids instead 3 years ago
FlightlessMango 66a07d77ba Use read_line for checking cpu sched 3 years ago
FlightlessMango 3261d12ad7 Add checking cpu scheduler 3 years ago
FlightlessMango 1a8689fbba Add gpu power to logs 3 years ago
flightlessmango af57e0cb2d
Merge pull request #445 from stephanlachnit/p/build-source-rework
imgui wrap from WrapDB and build-source.sh rework
3 years ago
jackun 41034b1089
[OpenGL] Return -1 instead for glXSwapBuffersMscOML if it is null 3 years ago
jackun 439ff716c2
[OpenGL] Some nullptr guards
Maybe helps issue #355
3 years ago
flightlessmango 206c55ef2e Bump version to v0.6.2 3 years ago
flightlessmango 73b7c58724 Clean subprojects in build.sh clean 3 years ago