Is there any future to Multithreaded Minetest?

Post Reply
WiliamHurts
New member
Posts: 1
Joined: Fri Apr 16, 2021 18:08

Is there any future to Multithreaded Minetest?

by WiliamHurts » Post

I would really like to attempt some Minetest programming.

However, what is really holding me back is a ceiling of a single threaded game.

Is there any liklihood in the next 5 years or so that a multithreaded version could be in the works?

(like at the same time porting to Rust?)

User avatar
Walker
Member
Posts: 1802
Joined: Tue Oct 03, 2017 09:22
In-game: Walker
Contact:

Re: Is there any future to Multithreaded Minetest?

by Walker » Post

also a posibility:

multithreaded LUA ? ( for better mod-performence ? )

deleted c0a803ab

Re: Is there any future to Multithreaded Minetest?

by deleted c0a803ab » Post

I would love to see more support for newer hardware and its functions.
I like that minetest is playable on many old computers, cause that means that people without access to better hardware can contribute too.

But both will not be possible probably, except there will be two developer teams, one for minetest that runs on your old computer and one that supports newer hardware and also such functions like multithreading and stuff.
I don't think that this will happen in the near future.

But performance should always be the third most priority, right after bugfixing and stability, new features come at last.

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

Re: Is there any future to Multithreaded Minetest?

by rubenwardy » Post

Minetest is already multithreaded: map generation runs in a different thread (Lua mapgen will block the server thread, though), as do the server and client.

Just naively throwing threads at a problem is likely to make your program slower and crash more. It takes a lot of design and effort to create a truly scalable parallelised application, which is why most games are largely singlethreaded with worker threads.
Walker wrote:
Fri Apr 16, 2021 18:36
multithreaded LUA ? ( for better mod-performence ? )
There's a PR for that: https://github.com/minetest/minetest/pull/11131
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Walker
Member
Posts: 1802
Joined: Tue Oct 03, 2017 09:22
In-game: Walker
Contact:

Re: Is there any future to Multithreaded Minetest?

by Walker » Post

rubenwardy wrote:
Fri Apr 16, 2021 19:18
Walker wrote:
Fri Apr 16, 2021 18:36
multithreaded LUA ? ( for better mod-performence ? )
There's a PR for that: https://github.com/minetest/minetest/pull/11131
yes yes yeeees

merge this sh*t ! sound cooooool~

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

Re: Is there any future to Multithreaded Minetest?

by philipbenr » Post

WiliamHurts wrote:
Fri Apr 16, 2021 18:18
(like at the same time porting to Rust?)
If you could find any traction for this, I'd be impressed. Rust is still fairly obscure and requires some "unlearning" of C++, which is not a fun process.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests