Fabulously-Optimized / fabulously-optimized

A simple Minecraft modpack focusing on performance and graphics enhancements.
https://download.fo
BSD 3-Clause "New" or "Revised" License
949 stars 85 forks source link

VulkanMod #338

Open Madis0 opened 2 years ago

Madis0 commented 2 years ago

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

supsm commented 2 years ago

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)
HyperSoop commented 2 years ago

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

HyperSoop commented 2 years ago

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

Madis0 commented 2 years ago

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.

osfanbuff63 commented 2 years ago

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

B055-Man commented 2 years ago

Vulkanmod was added to Modrinth

maximumpower55 commented 2 years ago

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

Kichura commented 2 years ago

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

nsde commented 1 year ago

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

Madis0 commented 1 year ago

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)

leonpano2006 commented 1 year ago

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

nsde commented 1 year ago

Thanks for sharing your experience, Leon!

nsde commented 1 year ago

Sadly, it still doesn't support some popular mods:

Kichura commented 1 year ago

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?

leonpano2006 commented 1 year ago

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

4194304 commented 1 year ago

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.

nyabinary commented 6 months ago

Any update on this?

Madis0 commented 6 months ago

The mod is still in a very experimental state.