VulkanMod
Madis0 opened this issue · 18 comments
Mod name
VulkanMod
Curseforge link
https://www.curseforge.com/minecraft/mc-mods/vulkanmod
Other links
https://modrinth.com/mod/vulkanmod
https://github.com/xCollateral/VulkanMod
What it does
Renderer rewrite for better performance
Why should it be in the modpack
#219 and maybe gives better performance
Why shouldn't it be in the modpack
WIP, OF shader support plans unknown
Categories
Performance optimization
Additional details
See also: #312
It seems to be quite a hassle for mac users to install, so I don't know if it would help much with #219. I guess the cons are sort of like canvas, iris and sodium extra will need to be yeeted. I highly doubt iris will work for a few reasons:
- VulkanMod replaces the renderer, which Iris also does; iirc iris needed to specifically have compatibility with sodium
- VulkanMod uses vulkan to do rendering, iris targets opengl. It would be quite a hefty task to port all of that to vulkan, including changing compilation target of glsl shaders to spir-v (for vulkan)
It seems to be quite a hassle for mac users to install, so I don't know if it would help much with #219. I guess the cons are sort of like canvas, iris and sodium extra will need to be yeeted. I highly doubt iris will work for a few reasons:
- VulkanMod replaces the renderer, which Iris also does; iirc iris needed to specifically have compatibility with sodium
- VulkanMod uses vulkan to do rendering, iris targets opengl. It would be quite a hefty task to port all of that to vulkan, including changing compilation target of glsl shaders to spir-v (for vulkan)
Is iris a rendering mod?...
It is worse than sodium, it is less compatible than sodium, it's not even in a stable state.
It is worse than sodium, it is less compatible than sodium, it's not even in a stable state.
Doesn't matter what it is now, it is just being tracked as a potential alternative.
A plus to using Vulkan is that they might be able to implement DLSS/FSR and, more importantly, ray tracing - which sorta makes OF shaders unnecessary. Or both options, for those people using an iGPU and/or a GPU that doesn't support it (Nvidia RTX 20-series and up, AMD RX 6000-series and up, potentially Intel Arc whenever it shows up).
Vulkanmod was added to Modrinth
It seems to be quite a hassle for mac users to install, so I don't know if it would help much with #219. I guess the cons are sort of like canvas, iris and sodium extra will need to be yeeted. I highly doubt iris will work for a few reasons:
- VulkanMod replaces the renderer, which Iris also does; iirc iris needed to specifically have compatibility with sodium
- VulkanMod uses vulkan to do rendering, iris targets opengl. It would be quite a hefty task to port all of that to vulkan, including changing compilation target of glsl shaders to spir-v (for vulkan)
Iris does not replace the renderer it injects into specific parts of the world renderer and game renderer and then we mixin into parts of sodium for compatibility
*VulkanMod is also very annoying to support due to many devices ending up suffering from it such as crashes, glitches and more which are at this time far worse than Sodium's limitations themselves are.
IMS, the main dev of Iris and maintainer of Sodium said the following, context added by me:
[...]
Madis0: what's Sodium's relation with Vulkan [a graphics API] overall
IMS: on the latest build [of Sodium], via Zink [a graphics library], it’s amazing
IMS: almost native performance [on Pojav Launcher - mobile devices]
Madis0: so Sodium uses Vulkan [the API] as much as [VulkanMod] does?
IMS: it’s not native [implementation of the] Vulkan [API]
Madis0: oh okay
IMS: VulkanMod has integral issues I don’t really want to get into
IMS: the rundown is a full Vulkan port is hard work with little gain
Madis0: right
IMS: Vulkan is not the magic bandaid for your problems
IMS: As far as I’m concerned, Pojav will be the biggest use VulkanMod will ever get
IMS: it doesn’t solve any other real problems
[...]
on my jetson xavier nx with vulkan mod and some optize mod my fps can reach 100FPS on 1.19.4
but with oringal Fabulously Optimized it is only about 0~30FPS only and mostly are on 10FPS
Sadly, it still doesn't support some popular mods:
- Iris Shaders (support will probably take quite a while or might not happen at all)
- Sodium (I don't know if that's an issue, to be honest. I mean, as long as it's well-customizable, it doesn't matter which mod is used for performance, right?)
- Immersive Portals
- Xaero's Mods
- AppleSkin
- Blur
- Better Advancements & Advancements Enlarger
- Dark Loading Screen
- Distant Horizons
- Essentials Mod
- Physics Mod
- Twilight Forest
- ToolTip
Sadly, it still doesn't support some popular mods:
* Iris Shaders (support will probably take quite a while or might not happen at all) * Sodium (I don't know if that's an issue, to be honest. I mean, as long as it's well-customizable, it doesn't matter which mod is used for performance, right?) * Immersive Portals * Xaero's Mods * AppleSkin * Blur * Better Advancements & Advancements Enlarger * Dark Loading Screen * Distant Horizons * Essentials Mod * Physics Mod * Twilight Forest * ToolTip
Sodium and Iris by default isn't designed to work with VulkanMod as both of them make use of OpenGL instead, wonder if there are mods that do the same thing?
But this mod is good to fix issue with OpenGL driver (like amdgpu on windows)
I tested VulkanMod with normal gameplay and it yielded a much better framerate than Fabulously Optimized from only one mod. It sure has lots of potential but sadly it isn't in the state where it can magically map OpenGL calls to Vulkan. Hopefully people would be able to port mods such as Continuity (which crashed with VulkanMod), Iris (probably never), and Colormatic (which hasn't even been updated to 1.19.4 yet). Because of those reasons it probably isn't suitable for Fabulously Optimized.