Minetest and Vulkan API?

Post Reply
User avatar
Kevin Tee
Member
Posts: 75
Joined: Wed Jul 22, 2015 04:00
Location: Thailand

Minetest and Vulkan API?

by Kevin Tee » Post

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

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

Re: Minetest and Vulkan API?

by Calinou » Post

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.

User avatar
Kevin Tee
Member
Posts: 75
Joined: Wed Jul 22, 2015 04:00
Location: Thailand

Re: Minetest and Vulkan API?

by Kevin Tee » Post

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.

User avatar
philipbenr
Member
Posts: 1897
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

Re: Minetest and Vulkan API?

by philipbenr » Post

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

Jordach
Member
Posts: 4534
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach
Location: Blender Scene

Re: Minetest and Vulkan API?

by Jordach » Post

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

User avatar
benrob0329
Member
Posts: 1341
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

Re: Minetest and Vulkan API?

by benrob0329 » Post

C wouldn't help you much, C++ would though.

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: Minetest and Vulkan API?

by rubenwardy » Post

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.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
philipbenr
Member
Posts: 1897
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

Re: Minetest and Vulkan API?

by philipbenr » Post

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.

User avatar
Hybrid Dog
Member
Posts: 2836
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

Re: Minetest and Vulkan API?

by Hybrid Dog » Post

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)

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

User avatar
Kevin Tee
Member
Posts: 75
Joined: Wed Jul 22, 2015 04:00
Location: Thailand

Re: Minetest and Vulkan API?

by Kevin Tee » Post

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.

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

Re: Minetest and Vulkan API?

by Calinou » Post

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

User avatar
Kevin Tee
Member
Posts: 75
Joined: Wed Jul 22, 2015 04:00
Location: Thailand

Re: Minetest and Vulkan API?

by Kevin Tee » Post

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.

User avatar
benrob0329
Member
Posts: 1341
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

Re: Minetest and Vulkan API?

by benrob0329 » Post

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

User avatar
Kevin Tee
Member
Posts: 75
Joined: Wed Jul 22, 2015 04:00
Location: Thailand

Re: Minetest and Vulkan API?

by Kevin Tee » Post

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?

User avatar
Ferk
Member
Posts: 337
Joined: Tue Aug 18, 2015 17:18
GitHub: Ferk

Re: Minetest and Vulkan API?

by Ferk » Post

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
{ ☠ Dungeontest ☠ , ᗧ••myarcade•• }

User avatar
benrob0329
Member
Posts: 1341
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

Re: Minetest and Vulkan API?

by benrob0329 » Post

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

User avatar
Kevin Tee
Member
Posts: 75
Joined: Wed Jul 22, 2015 04:00
Location: Thailand

Re: Minetest and Vulkan API?

by Kevin Tee » Post

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.

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

Re: Minetest and Vulkan API?

by Calinou » Post

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

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests