is minecraft multithreaded

image

Minecraft doesn’t support multi-threading. It was overlooked in development and due to the immense amount of work to change it to use more than 1 core, it was opted not to try it. I am not 100% sure if a mod or client exists that does this, but you could look around.

Full
Answer

Is Minecraft a multi-threaded game?

 · 100% single-threaded – except for in 1.14, where Mojang finally off-loaded the lightning engine, so at least that’s multi-threaded. Hooray! And, the garbage collector might decide to do some stuff off-thread. More than one core probably won’t do a lot, or anything noticeable really.

What does multithreading support mean for Minecraft servers?

 · nope minecraft is set to use only one thread so basically one core. the other cores being used are probably for os and other windows running. or have you installed Optifine? Rollback Post to Revision RollBack

What mods do you think need multi-threading?

 · Get our most popular Ryzen 3000 and 5000 powered Minecraft Hosting plan packed with 8GB of RAM for only $15 a month! Find out more at https://mcserverhosting.net/ This is a mod, that multithreads minecraft’s tick execution. Crazy, I know. It’s brought to you by the dark forces of coremodding, and works only as well as I’ve tested it

How many threads does it take to run Minecraft?

Minecraft is singlethreaded and does not utilize more cores. Is there a way to force it to do so? If not, aside from garbage collection java arguments; what are other methods of improving performance on a 1.12.2 server?

See more

 · Performance is a serious issue for servers, and since the release of 1.13 the issues preventing servers from upgrading only seem to rise. Adding multithreading support will allow for Minecraft Servers to be able to upgrade to 1.14, which is known to have issues with chunk loading and lighting. The inability to use more than one thread is a huge restriction for servers.

image
image

How many threads does Minecraft use?

nope minecraft is set to use only one thread so basically one core. the other cores being used are probably for os and other windows running. or have you installed Optifine?

Is Minecraft 1.3 singleplayer?

With the 1.3 Singleplayer being a local server, we get some sort of partial dualcore support. Only noticeable during large explosions, though. But still a bonus.

Does Minecraft use a single core?

Minecraft is a very CPU intensive game but currently Minecraft will only use a single core of your processor, whether you have a 6-Core I7 Extreme or a single core AMD sempron.

Does Minecraft need multi thread support?

I completely agree that Minecraft needs multi-thread support, but I also know that to be correctly done, it would require an almost complete rewrite of the game’s main code and would introduce a vast number of bugs.

Is LWJGL thread safe?

It looks like the LWJGL GLContext and Pbuffer classes are thread-safe, so could easily be used to help separate the game engine from the loading/rendering.

What is a tick loop in Minecraft?

The default minecraft tick loop is basicly just a bunch of for-each loops inside eachother (Basicly here being for simplicity). What this does is say that whenever it would normally do the execution inside the loop, it pushes the task of performing the execution to a thread pool, which will execute handle the work.

How many jars are needed for Fastutil?

There are now 2 jars required, one for the actual mod functionality, and another for hooking into modlauncher to allow for the modification of FastUtil. The game will load without the second jar, but will be more unstable. I’m looking into finding a solution for people to not have to download both jars, but that’s still work in progress

What does “Rough Mobs Reloaded” mean?

Rough Mobs Reloaded – Causes an NPE in the pathfinding code during RiderLocation; is ignorable or this can be disabled in RMR’s config

Can you reproduce bugs in a mod?

If you encounter bugs in mods while using this mod, please try to reproduce them without this mod installed as other mod devs shouldn’t have to wrap their head around debugging concurrency.

Do you report bugs to mods?

On that note, if you are playing with mods; DO NOT report bugs to the mod author unless they explicitly state they accept them; as mods are not built (currently) to support multithreading. To any mod authors out there, this logs “MCMT enabled; logs invalid” in the logs at a regular interval so as to make it extremely clear that you should ignore these logs.

Why does Minecraft disable Redstone?

This is what Minecraft needs. Many large survival servers completely disable redstone and gameplay mechanics because of poor performance.

Is multithreading easier?

YESSS, multithreading will make things so much easier.

Can you use more than one thread on Minecraft?

Adding multithreading support will allow for Minecraft Servers to be able to upgrade to 1.14, which is known to have issues with chunk loading and lighting. The inability to use more than one thread is a huge restriction for servers. There are certain processes that can and should be done in parallel, some ideas are below.

How many threads does Minecraft use?

So, this is actually a huge deal for performance. Basically, minecraft runs on one thread (technically 3 but one does all the heavy lifting) and doesnt touch the entire rest. An AMD Threadripper 3990X (the most powerful, somewhat affordable CPU, so basically what you want to use for maximum performance) has 128 threads, so you use less than 1% of the performance a Threadripper 3990X has to offer. The best option right now for minecraft is an I9 9900K, which has the best single thread performance, so thats what you would want to get right now. There are people trying to make minecraft use the entire CPU, but that requires basically reprogramming the entire game from scratch, so it takes a long while, so nothing which will release in a few days.

What is a subreddit in Minecraft?

A subreddit for technical Minecraft players to gather to showcase contraptions, ask questions, and learn more about the deeper intricacies of the game!

Is Minecraft single core?

Client side: Like most video games, the Minecraft client is mostly single core. The client needs to do most of the work to render the game one step at a time to make sure that the graphics don’t look to out of place. You can’t simultaneously render two blocks on top of each other without interlacing.

Can Minecraft run on multiple threads?

Minecraft runs on only one thread, it can’t use multiple threads at once. You want the chip with the best single core/single thread performance for minecraft. I totally agree. I play on a powerful laptop but it has to have a low clock speed to stop it getting too hot.

Can you run multiple steps at once in Minecraft?

Parallel programs run differently; instead of each step requiring results from the last step, multiple steps can be run at once, and the results collected at the end. Okay so for Minecraft, there’s two sides to this. Client side: Like most video games, the Minecraft client is mostly single core. The client needs to do most …

Is it better to play with more cores?

It is better to play with more powerful cores but less of them. I’m not sure how it effects server performance. It puts an upper cap on server performance, since you can create servers with more cores, but its more difficult to get faster cores after a while. So, this is actually a huge deal for performance.

Is Minecraft sequential?

This is where I have more experience. Minecraft is largely sequential, with almost none of the standard tick loop being done in parallel. That means that for every single entity, what to do with it is processed one after another. This results in large numbers of entities significantly slowing down the tps. Now, there are projects, especially for spigot forks, in which developers try to make more parts of the game happen in parallel, especially entity processing. Processing the entities 8 or even 16 at a time is, well, almost 8-16x faster. However, sometimes this can subtly change the behavior of the game. For example, if one entity was colliding with another, if they were both processed at the same time, they might clip through each other. There are ways to mitigate this, and for many large multiplayer servers, this trade off can be worth it. However, for technical players it’s a deal breaker.

What happens if you don’t design for threading upfront?

If you don’t design for threading upfront and just start trying to tack it on it becomes very difficult to ensure things are working right.

What mods kill servers with chunk generation?

Generation mods like Biomes O Plenty or Biomes XL, even Botania with it’s flowers kill servers with their chunk generation, imagine being able to have that on another thread actually making use of these 4-core processors we have.

Is Minecraft thread safe?

Yes, I understand what thread-safe is. Yes, I know Minecraft isn’t thread-safe. Yes, I realise how stupid this may sound. BUT, This has been done before, quite successfully too. The main issue that arose was patching mods. But, what’s stopping someone from just having different modules so-to-say, one for Mobs, one for Dimensions, etc, …

Is multi threading hard?

The second one, as a developer: Multi threading is hard. We, as humans, are not really prepared to think in a multi threading way. Obviously is doable, but is hard. The best shot is to use certain infrastructure thought exactly to make multi threading more easy to think about. Stuff like Nodejs and/or promises as the leading paradigm.

Can you thread different worlds?

Now, threading different worlds as a whole, that can be done, but there might end up being issues with synchronisation and sending stuff between them in some cases, particularly if the tickrates of the two worlds differ significantly.

Is Minecraft a simple game?

Minecraft has become a very sophisticated game program wise. It use to be pretty simple but it’s exploded in size the last couple of years. There is just way to much going on in that code base for an outsider to try and reach in a design something as fragile as threading for it these days.

Leave a Comment