Minetest and Vulkan API?

Minetest and Vulkan API?

Postby Kevin Tee » Fri Oct 16, 2015 7:06 pm

Hi, there has been a lot of excitement about Directx 12 and Vulkan. If I am correct, minetest is using opengl, right? I want to know that if minetest will benefit from Vulkan. I saw Vulkan API performance on youtube and it is very efficient. Do we have enough resource to implement Vulkan API?

And one more question, minetest on my system seems not to use my cpu or gpu efficiently, the frame rate drop to 30fps but it still use only 15-20% cpu and 30% gpu. Is it normal? I prefer using more cpu for higher frame rate.

minetest 0.4.13
linux mint 17.2
i7 3770
GTX 650 driver version 346.96
8 gb ram
Kevin Tee
Member
 
Posts: 64
Joined: Wed Jul 22, 2015 4:00 am

Re: Minetest and Vulkan API?

Postby Calinou » Fri Oct 16, 2015 7:09 pm

Minetest uses Irrlicht.

If Irrlicht gets Vulkan support, then we will possibly support it (we need to write shaders for it, I guess). Else, we won't.
Calinou
Moderator
 
Posts: 3153
Joined: Mon Aug 01, 2011 2:26 pm
GitHub: Calinou
In-game: Calinou

Re: Minetest and Vulkan API?

Postby Kevin Tee » Fri Oct 16, 2015 7:27 pm

Calinou wrote:Minetest uses Irrlicht.

If Irrlicht gets Vulkan support, then we will possibly support it (we need to write shaders for it, I guess). Else, we won't.

I have read some discussion on irrlicht forum and the community would like to have vulkan too, but no official announcement yet. Not until Vulkan is finalize, I think.

Edit: The developer in the Irrlicht forum said that they will implement it in the future.
Kevin Tee
Member
 
Posts: 64
Joined: Wed Jul 22, 2015 4:00 am

Re: Minetest and Vulkan API?

Postby philipbenr » Sat Oct 31, 2015 8:24 am

MT could get some pretty decent perf boosts using Vulkan in Irrlicht, based on what I have seen.
philipbenr
Member
 
Posts: 1688
Joined: Fri Jun 14, 2013 1:56 am
GitHub: philipbenr
In-game: robinspi

Re: Minetest and Vulkan API?

Postby Jordach » Mon Nov 02, 2015 12:42 am

philipbenr wrote:MT could get some pretty decent perf boosts using Vulkan in Irrlicht, based on what I have seen.

Except for the fact that, MT and Irrlicht, are more CPU driven than GPU driven. Even with my powerful rendering rig, MT runs terribly. Even with lightweight subgames - this is a problem with Irrlicht and how MT interfaces with it. If I knew C a little bit better I might be able to help resolve this, considering how much I complain at the plain graphics. ;)
Jordach
Member
 
Posts: 4522
Joined: Mon Oct 03, 2011 5:58 pm
GitHub: Jordach
In-game: Jordach

Re: Minetest and Vulkan API?

Postby benrob0329 » Mon Nov 02, 2015 1:47 am

C wouldn't help you much, C++ would though.
benrob0329
Member
 
Posts: 1262
Joined: Thu Aug 06, 2015 10:39 pm
GitHub: Benrob0329
In-game: benrob03

Re: Minetest and Vulkan API?

Postby rubenwardy » Tue Nov 03, 2015 12:23 am

Minetest's code is mostly in C style in terms of methology. If you came from C rather than C++ you'd have more of an idea of the technical details. But any is valid, and you will need c++ knowledge as well.

My impression from reading the irc logs.
rubenwardy
Moderator
 
Posts: 5737
Joined: Tue Jun 12, 2012 6:11 pm
GitHub: rubenwardy
In-game: rubenwardy

Re: Minetest and Vulkan API?

Postby philipbenr » Wed Nov 04, 2015 10:09 pm

Jordach wrote:
philipbenr wrote:MT could get some pretty decent perf boosts using Vulkan in Irrlicht, based on what I have seen.

Except for the fact that, MT and Irrlicht, are more CPU driven than GPU driven. Even with my powerful rendering rig, MT runs terribly. Even with lightweight subgames - this is a problem with Irrlicht and how MT interfaces with it. If I knew C a little bit better I might be able to help resolve this, considering how much I complain at the plain graphics. ;)


Mmm. Good point. Minetest does need to shift it's weight over to the GPU a bit.
philipbenr
Member
 
Posts: 1688
Joined: Fri Jun 14, 2013 1:56 am
GitHub: philipbenr
In-game: robinspi

Re: Minetest and Vulkan API?

Postby Hybrid Dog » Mon Nov 23, 2015 5:10 pm

l agree, but minetest also shouldn't only use the gpu, fogleman craft (if l remember the name correctly) works liquid on pcs with new gpu but very laggy on pcs with old gpu.
Maybe in the future irrlicht decides to use e.g. opencl for calculations if it's installed correctly and works faster than using the processor. BTW: opencl already works with open source drivers (see oibaf)
Hybrid Dog
Member
 
Posts: 2725
Joined: Thu Nov 01, 2012 12:46 pm

Re: Minetest and Vulkan API?

Postby Kevin Tee » Sun Nov 29, 2015 8:37 am

Minetest is redering on 1 thread from 8 threads of my core i7 cpu. Maybe this problem is on opengl. If vulkan comes out then expect HUGE performance boost.
Kevin Tee
Member
 
Posts: 64
Joined: Wed Jul 22, 2015 4:00 am

Re: Minetest and Vulkan API?

Postby Calinou » Sun Nov 29, 2015 11:28 am

Kevin Tee wrote:Minetest is redering on 1 thread from 8 threads of my core i7 cpu. Maybe this problem is on opengl. If vulkan comes out then expect HUGE performance boost.


While Vulkan might make it more possible/easier to offload the rendering load to several CPU threads, the main purpose is to be less heavy on low-end CPUs (similar to what Mantle did, if I'm not mistaken). On high-end CPUs, the performance gain will likely be more marginal (20% to 30%).
Calinou
Moderator
 
Posts: 3153
Joined: Mon Aug 01, 2011 2:26 pm
GitHub: Calinou
In-game: Calinou

Re: Minetest and Vulkan API?

Postby Kevin Tee » Mon Nov 30, 2015 6:25 am

Calinou wrote:
Kevin Tee wrote:Minetest is redering on 1 thread from 8 threads of my core i7 cpu. Maybe this problem is on opengl. If vulkan comes out then expect HUGE performance boost.


While Vulkan might make it more possible/easier to offload the rendering load to several CPU threads, the main purpose is to be less heavy on low-end CPUs (similar to what Mantle did, if I'm not mistaken). On high-end CPUs, the performance gain will likely be more marginal (20% to 30%).


I have seen video of vulkan api demo on rendering gnomes. https://youtu.be/P_I8an8jXuM
The demo shows that vulkan distribute cpu loads very efficiently compare to opengl. I will be quite dissapoint if minetest did not benefit much from this.
Kevin Tee
Member
 
Posts: 64
Joined: Wed Jul 22, 2015 4:00 am

Re: Minetest and Vulkan API?

Postby benrob0329 » Mon Nov 30, 2015 1:59 pm

I would rather see MT get optimised and use OpenCL (which is cross platform) rather than focus development on DX12 or Vulkan.
benrob0329
Member
 
Posts: 1262
Joined: Thu Aug 06, 2015 10:39 pm
GitHub: Benrob0329
In-game: benrob03

Re: Minetest and Vulkan API?

Postby Kevin Tee » Mon Nov 30, 2015 3:00 pm

benrob0329 wrote:I would rather see MT get optimised and use OpenCL (which is cross platform) rather than focus development on DX12 or Vulkan.

Are there anyone working on this? Is this on the road map?
And what is the bottle neck for mt performance? Irrelicht or mt itself?
Kevin Tee
Member
 
Posts: 64
Joined: Wed Jul 22, 2015 4:00 am

Re: Minetest and Vulkan API?

Postby Ferk » Mon Nov 30, 2015 3:37 pm

OpenCL is an entirely different thing, it's not a graphics API, but a language to work across processors and be able to use GPU for operations that do not have to be about graphics.

Vulkan is intended to be cross platform, it's designed as the successor for OpenGL
Ferk
Member
 
Posts: 337
Joined: Tue Aug 18, 2015 5:18 pm
GitHub: Ferk

Re: Minetest and Vulkan API?

Postby benrob0329 » Tue Dec 01, 2015 12:54 am

Is Vulkan OSS like OpenGL? If so then maybe the MT devs (and other people like me!) could make a new graphics engine! (Sparse Voxel Octrees anyone?)
benrob0329
Member
 
Posts: 1262
Joined: Thu Aug 06, 2015 10:39 pm
GitHub: Benrob0329
In-game: benrob03

Re: Minetest and Vulkan API?

Postby Kevin Tee » Tue Dec 01, 2015 5:51 pm

benrob0329 wrote:Is Vulkan OSS like OpenGL? If so then maybe the MT devs (and other people like me!) could make a new graphics engine! (Sparse Voxel Octrees anyone?)

Yes, it is the successor of opengl, but it is not release yet.
Kevin Tee
Member
 
Posts: 64
Joined: Wed Jul 22, 2015 4:00 am

Re: Minetest and Vulkan API?

Postby Calinou » Tue Dec 01, 2015 8:37 pm

benrob0329 wrote:Is Vulkan OSS like OpenGL? If so then maybe the MT devs (and other people like me!) could make a new graphics engine! (Sparse Voxel Octrees anyone?)


Neither Vulkan nor OpenGL are "open source". They are open-ish* standards, and are not software. Vulkan is expected for release in early 2016 (or, with some luck, in December 2015).

*: both OpenGL and Vulkan are pretty much developed behind closed doors. If you want to join their development, you'll probably have to sign non-disclosure agreements and such. Hence "open-ish".
Calinou
Moderator
 
Posts: 3153
Joined: Mon Aug 01, 2011 2:26 pm
GitHub: Calinou
In-game: Calinou

Re: Minetest and Vulkan API?

Postby Tikilou » Thu Apr 04, 2019 11:55 pm

Any news about Vulkan on Minetest ? :)
Tikilou
Member
 
Posts: 10
Joined: Mon Mar 25, 2019 11:33 am

Re: Minetest and Vulkan API?

Postby uwu » Sun Apr 07, 2019 7:55 pm

Calinou wrote:Minetest uses Irrlicht.

If Irrlicht gets Vulkan support, then we will possibly support it (we need to write shaders for it, I guess). Else, we won't.
uwu
Member
 
Posts: 33
Joined: Sun Jan 21, 2018 3:01 pm

Re: Minetest and Vulkan API?

Postby Tikilou » Mon Apr 08, 2019 8:32 pm

uwu wrote:
Calinou wrote:Minetest uses Irrlicht.

If Irrlicht gets Vulkan support, then we will possibly support it (we need to write shaders for it, I guess). Else, we won't.


There is a fork of Irrlicht with Vulkan support => https://github.com/JayDT/Irrlicht

http://irrlicht.sourceforge.net/forum/v ... =6&t=52371

Another project with Vulkan and WebGL renderer too => http://irrlicht.sourceforge.net/forum/v ... =6&t=51869 (intersting about run minetest inside web browser ? :) )
Tikilou
Member
 
Posts: 10
Joined: Mon Mar 25, 2019 11:33 am



Return to Feature Discussion



Who is online

Users browsing this forum: Yandex Bot [Bot] and 0 guests