Commit Graph

130 Commits

Author SHA1 Message Date
Etaash Mathamsetty
732629e5a0 Implement Wayland hotkeys 2024-02-28 21:10:58 +01:00
FlightlessMango
d2b9458a46 present_mode: set to FIFO is not available
When a present mode is not available for some reason, then vulkan fallsback
to FIFO. So we just say it's FIFO and call it day.
2024-02-15 07:14:07 +01:00
FlightlessMango
0ab4c25343 present_mode: account for app requested mode 2024-02-05 22:47:29 +01:00
FlightlessMango
2bc323b2ed param: present_mode
This parameter displays the current present mode being used in vulkan or
the vsync status in opengl
2024-02-05 22:17:00 +01:00
flightlessmango
f351515265 Fix gpu_fan for AMD
It was incorrectly checking deviceID instead of vendorID.
We also use hwmon for fan reading just in case.
2023-10-31 15:04:53 +01:00
Alessandro Toia
10c0f608fd file_utils: add remove_parentheses function and use it for gpu_name 2023-10-03 17:30:20 -07:00
FlightlessMango
84caba707a subproject: implot 2023-09-29 15:41:15 +02:00
Alessandro Toia
41e4859547 vulkan: Use correct corresponding macro for IM_NEW() 2023-09-20 21:05:32 -07:00
Alex Maese
cd05d1771f Add ability to toggle through presets 2023-09-08 06:26:22 +02:00
Etaash Mathamsetty
41f923b0b2 Use vulkan/GL device name 2023-08-16 16:32:28 +02:00
FlightlessMango
7189b75efe blacklist: break earlier if hardcoded blacklist 2023-08-02 19:53:13 +02:00
FlightlessMango
602ba78ea3 Split library into vulkan and opengl parts.
This has caused a lot of issues because when preloaded the vulkan hooks
will still initialize even tho it's an OpenGL application.
This will subsequently crash the application.
The solution is to split the vulkan and opengl parts into two separate
shared libraries.
2023-07-21 05:31:58 +02:00
FlightlessMango
8f79e9cef3 sampler: don't apply picmip unless it's set in config 2023-04-15 20:29:47 +02:00
FlightlessMango
c9d3a70a48 sampler: use instance params 2023-04-09 17:01:54 +02:00
Alessandro Toia
328df38ecc Remove not needed cerr 2023-04-06 22:43:09 -07:00
Alessandro Toia
4b2e78a9d7 vulkan: make sure to parse config before checking parameters 2023-04-06 22:41:53 -07:00
FlightlessMango
ce5e0683f0 Nearest filter param 2023-04-03 00:04:24 +02:00
FlightlessMango
4fb0bb328b Bicubic filtering param 2023-04-03 00:04:24 +02:00
FlightlessMango
de29e057de Trilinear filtering param 2023-04-03 00:04:24 +02:00
FlightlessMango
5fe07a0ac3 Anisotropic filtering param 2023-04-03 00:04:24 +02:00
FlightlessMango
9b9e6e7b68 Sampler hook and picmip param 2023-04-03 00:04:24 +02:00
Hannes Mann
e1f41bbb92 glx,egl,vulkan: Limit FPS early or late depending on config 2023-03-16 03:33:42 +01:00
Emil Velikov
eecd451068 meson: build with -Werror=missing-declarations
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2023-03-04 21:40:56 +02:00
Alessandro Toia
87cc5c62fa vulkan: Remove unused VkPhysicalDeviceFeatures 2023-02-01 16:20:03 -08:00
Kenton Groombridge
ffa7048543 vulkan: fix implicit instantiation of 'std::basic_stringstream<char>'
Add a missing include to fix the following build error seen with clang
15.0.7:

../MangoHud-0.6.8/src/vulkan.cpp:1523:22: error: implicit instantiation of undefined template 'std::basic_stringstream<char>'
   std::stringstream ss;
                     ^
/usr/include/c++/v1/iosfwd:146:32: note: template is declared here
    class _LIBCPP_TEMPLATE_VIS basic_stringstream;
2023-01-31 22:04:22 +01:00
FlightlessMango
8450291777 vulkan: Do not modify pCreateInfo in CreateDevice 2023-01-24 12:05:03 +01:00
azn1999
f7a1cc159c Fix FPS limiter
Note: the egl limiter is already correct
2023-01-23 06:57:52 +01:00
jackun
85007fe0bd
Use separate font atlas for vulkan
vkCreateSwapchainKHR and vkQueuePresentKHR may share the same ImGui context accidentally and
vkCreateSwapchainKHR might (re)create font image and destroy old font atlas while vkQueuePresentKHR is still rendering :(
2022-07-29 02:11:28 +03:00
jackun
27c9863119
Set initial client socket handle to "invalid" value 2022-06-12 19:35:50 +03:00
jackun
c19d37ab76
Temporary perma fix for vkQueueSubmit blocking on "used" semaphore when multiple swapchains are sent to vkQueuePresentKHR 2022-05-27 08:46:27 +03:00
jackun
f680c28f1f
Generalize control over socket so it works with OpenGL too 2022-05-23 18:07:39 +03:00
jackun
753dd96325
Use overlay_new/end_frame to push/pop custom ImGui styles 2022-05-15 02:02:50 +03:00
jackun
d2d6787568
Cleanup some header inclusions 2022-03-29 09:33:26 +03:00
jackun
73da29d4ad
Try to init spdlog a bit earlier 2022-03-29 09:33:21 +03:00
jackun
2f5efc320a
Move FpsLimiter to overlay.cpp 2022-03-24 12:32:51 +02:00
jackun
8e21b52acf
Make get_device_name return GPU name 2022-03-06 22:02:09 +02:00
jackun
c88ef84bf5
Revert "Get device name before system info"
This reverts commit e7de7b5b93.
2022-03-06 21:32:16 +02:00
jackun
e555a942fb
Use single IO stats instance 2022-02-18 16:44:10 +02:00
jackun
4608fa5e3a
vkGetInstanceProcAddr(instance, "vkGetInstanceProcAddr") should return our vkGetInstanceProcAddr not the next in the chain. 2022-02-15 00:35:55 +02:00
flightlessmango
e435764eff
Merge pull request #662 from nanokatze/master
Set VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT when creating swapchain
2022-01-25 11:27:11 +01:00
FlightlessMango
9c15d093d6 Only reset logger if param is not set 2022-01-25 11:18:28 +01:00
FlightlessMango
c50c815630 destroy logger with vulkan instance 2022-01-22 04:24:48 +01:00
FlightlessMango
9758d2a286 Try to get correct amd gpu when multiple 2022-01-02 12:04:22 +01:00
Constantine
a04230ad29 Set VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT when creating swapchain
Fixes #582
2021-12-30 23:44:56 +02:00
FlightlessMango
ac58c30bbc Use driverInfo for driver name/version instead 2021-12-13 14:20:38 +01:00
FlightlessMango
e7de7b5b93 Get device name before system info 2021-12-10 11:47:55 +01:00
FlightlessMango
fbda58c907 Some windows fixes 2021-11-12 05:44:53 +01:00
FlightlessMango
45be485a13 mangohud control 2021-11-04 02:08:26 +01:00
FlightlessMango
5fee3bc5e3 Change _params to pointer 2021-11-04 02:07:38 +01:00
FlightlessMango
b001eb4714 Move _params init to overlay.cpp 2021-10-18 17:50:58 +02:00