nvidium icon indicating copy to clipboard operation
nvidium copied to clipboard

Vulkan version

Open Martinligabue opened this issue 1 year ago • 9 comments

After reading https://github.com/MCRcortex/nvidium/issues/41 and https://github.com/MCRcortex/nvidium/issues/52, I see that Minecraft's default use of OpenGL is the main issue. However, I have tested https://github.com/xCollateral/VulkanMod and it worked perfectly. By combining this mod with the other one, we could potentially solve the problem. Moreover, creating a Vulkan version of the mod would increase its compatibility, enabling it to support Intel and AMD systems in addition to Nvidia. Do you think there's a chance of it working?

Martinligabue avatar Jan 19 '24 11:01 Martinligabue

But this mod uses OpenGL features to function... how would that be transferred over to Vulkan?

ayushthoren avatar Jan 19 '24 15:01 ayushthoren

that's what I'm asking, is it feasible?

Martinligabue avatar Jan 19 '24 22:01 Martinligabue

Ask in the discord, cortex is more active there

KingRocco21 avatar Jan 20 '24 02:01 KingRocco21

But this mod uses OpenGL features to function... how would that be transferred over to Vulkan?

I have read that Vulkan also has support for mesh shading, which is the technology utilized by Nvidium with OpenGL. It is most definitely possible to make a Vulkan port.

https://www.khronos.org/blog/mesh-shading-for-vulkan https://developer.nvidia.com/blog/using-mesh-shaders-for-professional-graphics/

Ivanmatthew avatar Jan 20 '24 15:01 Ivanmatthew

making it available for vulkan would also solve the nvidia only issue, as VK_EXT_mesh_shader is available on most modern GPUs

Eeveelution avatar Jan 20 '24 23:01 Eeveelution

Yes, but nvidium also depends on sodium. So for a vulkan version, someone also needs to rewrite sodium to use vulkan. Or rewrite vulkanmod to use a sodium-like pipeline, neither I see happening soon due to the amount of work this would be with little payoff.

ferriarnus avatar Jan 21 '24 00:01 ferriarnus

making it available for vulkan would also solve the nvidia only issue, as VK_EXT_mesh_shader is available on most modern GPUs

Only RDNA2 and up (6000 series and up) have hardware support for Mesh Shaders.

But yeah, it would be pretty cool since AMD is the current price/performance king.

Splarkszter avatar Jan 21 '24 07:01 Splarkszter

EXT_mesh_shader does not performance as well as NV_mesh_shader , in addition, the mesh shader may have performance issues on RDNA2.

Andarwinux avatar Jan 21 '24 15:01 Andarwinux

Yes, but nvidium also depends on sodium. So for a vulkan version, someone also needs to rewrite sodium to use vulkan. Or rewrite vulkanmod to use a sodium-like pipeline, neither I see happening soon due to the amount of work this would be with little payoff.

Does VulkanMod have a "sodium-like pipeline"? I mean, is it possible to, let's say, fork it and make it utilize mesh shaders to achieve results similar to Nvidium? How feasible is it?

Esensats avatar Jan 22 '24 19:01 Esensats

https://github.com/GPUOpen-Drivers/AMD-Gfx-Drivers/issues/4#issue-2308252009

RokeJulianLockhart avatar Jul 14 '24 16:07 RokeJulianLockhart