fabulously-optimized icon indicating copy to clipboard operation
fabulously-optimized copied to clipboard

VulkanMod

Open Madis0 opened this issue 3 years ago • 19 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

Madis0 avatar May 19 '22 20:05 Madis0

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:

  1. VulkanMod replaces the renderer, which Iris also does; iirc iris needed to specifically have compatibility with sodium
  2. 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)

supsm avatar May 19 '22 22:05 supsm

It is worse than sodium, it is less compatible than sodium, it's not even in a stable state.

HyperSoop avatar May 30 '22 14:05 HyperSoop

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:

  1. VulkanMod replaces the renderer, which Iris also does; iirc iris needed to specifically have compatibility with sodium
  2. 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?...

HyperSoop avatar May 30 '22 14:05 HyperSoop

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.

Madis0 avatar May 30 '22 14:05 Madis0

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).

osfanbuff63 avatar Jun 17 '22 13:06 osfanbuff63

Vulkanmod was added to Modrinth

B055-Man avatar Jun 23 '22 09:06 B055-Man

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:

  1. VulkanMod replaces the renderer, which Iris also does; iirc iris needed to specifically have compatibility with sodium
  2. 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

maximumpower55 avatar Jul 07 '22 01:07 maximumpower55

*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.

Kichura avatar Oct 20 '22 18:10 Kichura

I'm doing a benchmark (if I don't forget it lmao). More info on our Discord.

nsde avatar Nov 24 '22 12:11 nsde

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 [...]

Source (via)

Madis0 avatar Mar 08 '23 16:03 Madis0

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

leonpano2006 avatar May 24 '23 14:05 leonpano2006

Thanks for sharing your experience, Leon!

nsde avatar May 24 '23 18:05 nsde

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

nsde avatar May 24 '23 18:05 nsde

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?

Kichura avatar May 24 '23 18:05 Kichura

But this mod is good to fix issue with OpenGL driver (like amdgpu on windows)

leonpano2006 avatar May 25 '23 06:05 leonpano2006

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.

4194304 avatar May 30 '23 00:05 4194304