r/Minecraft • • Dec 18 '20

Java Performance Vs Bedrock Performance in a nutshell, a lot better for Java than pre-1.15

Post image
692 Upvotes

294 comments sorted by

View all comments

79

u/Saintdemon Dec 18 '20

People in here really don't want to accept that java was never meant to be used to make a game in the scope of Minecraft. Bedrock runs better because it's made with a coding language which is actually meant to make games.

53

u/sklfjasd90f8q2349f Dec 18 '20

Out of those 64 chunks, Bedrock only simulates around 8 or 10 of them. Java simulates almost every loaded chunk, that's why it's laggy.

6

u/[deleted] Dec 18 '20

You're using the terms wrong. Bedrock only simulates all these chunks. Event it comes to loading them, it can be between 16 and I think 256 (that would mean a load distance of 4-16). They're not even generated. If you see an old nether chunk in the distance, then update to nether update, it will become an updated nether chunk

8

u/flamesaurus565 Dec 18 '20

well that's only part of the problem, u/Saintdemon is right

3

u/[deleted] Dec 18 '20

What I’d the purpose of Java over bedrock?

6

u/Saintdemon Dec 18 '20

The purpose? Java is the original one developed by Notch. Notch never expected Minecraft to become so popular and to have to add so many features to it - so he programmed it in a simple an easy language: Java.

When Microsoft bought Minecraft from Notch they wanted to bring the game to more platforms and also allow cross-platform connectivity - but they also realized that there was no way they could do this in Java so they remade the game from scratch in C++/C#.

Oh, and Microsoft most likely also wanted to remake the game from scratch because that would allow them to implement more commercially viable features (such as paying for skins and server-hosting).

Just to stop me from getting crucified by Java-enthusiasts: Java is a good language because it's simple and relatively versatile. The problem is that it is intended to make small apps and simple games - it was never intended to make complex games such as Minecraft.

2

u/Muoniurn Dec 20 '20

Small crucifix by java enthusiast:”it is intended for small apps and simple games” -> java is intended to achieve 90+% performance with ease of development over lower level languages. And small apps are not quite the target, I would say instead extremely fucking huge apps like banks/basically every server-side thing everything. The reason it is not as good of a fit for games is that the JVM is mostly optimizes for throughput not latency and that games often require more elaborate memory management.

2

u/[deleted] Feb 04 '21

Correction: they did not use C# and C++, that would be horrible to develop, they used C and C++, which are very compatible with each other (C++ is built of C)

2

u/Galactic-Alpha Dec 18 '20

So ur saying bedrock has a better gaming chair

-8

u/[deleted] Dec 18 '20

you ... don't need Java installed to play Minecraft Java. but for mods and mod-loaders you do... ANYWAY.

40

u/Phyremaster Dec 18 '20

This is because Minecraft comes with its own special copy of Java. You can't run something that's written in Java without the Java Virtual Machine. That's like... one of the fundamental facts of Java as a language. The person you're responding to is correct: Java is slower than, say, C++.

This is, however, far from the only reason that Java is slower than Bedrock. Virtualization adds overhead, but not that much overhead. And when you compare the editions in a general sense (not just looking at performance), there are plenty of reasons why many prefer Java to Bedrock. There's the sentimental value, of course, but also things like redstone functionality. Bugrock redstone lacks many extremely important features of Java redstone and is quite literally random, making building any sort of complex machine orders of magnitude more difficult. For many people, myself included, this is a deal-breaker.

Just because I prefer Java doesn't mean Bedrock is inferior. It depends on what matters to you. Bedrock is designed to run fast for mobile devices, but it comes with sacrifices.

14

u/flamesaurus565 Dec 18 '20

that's a surprisingly well worded and reasonable opinion, you have my respect

6

u/[deleted] Dec 18 '20 edited Dec 19 '20

I guess I chose the right version then, I like Redstone things.

edit: I'm not anywhere near good at some contraptions but I'm good at re-configring the Redstone to look nice or compact it.

2

u/OSSlayer2153 Dec 18 '20

Well i dont see how its that random, i built a redstone computer on my phone with java tutorials and then built it exactly the same when i got my pc on java to test randomness.

1

u/roidrole Dec 18 '20

Java redstone doesn’t make sence

Bedrock redstone lacks useful bugs

When you have multiple things happening in one tick, it’s random on bedrock (which makes sence) while its arbitrary always the same on Java (and it can be locational and directional)

2

u/G4METIME Dec 18 '20

What do you mean by 'randomness makes sense'? If I build a contraption and give it an input I would expect to always get the same output (unless there is some explicit randomising part implemented), at least IRL e.g. with electric logic circuit this should be the case. So having randomness is IMO counter-intuitive

1

u/roidrole Dec 18 '20

When two contradictory things happen at the same time, usually they break the whole thing. The most sensible thing to do then is to make it random

2

u/Shebazz Dec 18 '20

Why is that the most sensible thing? I'm of the mind that if I do X, then Y should happen. The most sensible thing is the same input resulting in the same output each time

1

u/Phyremaster Dec 18 '20

I could write a lengthy explanation of the major, contraption-breaking differences between Java and Bedrock redstone. I could find one of the many videos online showing Bedrock sticky pistons fighting over a block to demonstrate how Bedrock will not behave consistently even though the situation is the same every other tick.

Instead, I will ask you to try to build any type of complex or compact flying machine with Bedrock redstone. For reference, it is possible to build a 2 x 2 x 2, bi-directional flying machine along any axis with Java redstone. In Bedrock, that is impossible due to the aforementioned randomness. This, along with other problems, makes it incredibly difficult to build any contraption involving (sticky) pistons in Bedrock without the contraption being excessively large or slow.

Again, this is all up to preference. Bedrock even has one thing that Java doesn't, in terms of redstone: blocks with inventories are movable. In general, however, redstone contraptions that are more technical in nature are simply impossible in Bedrock.

(P.S.: Can you share your redstone computer? I really like redstone computers.)

-1

u/Royal_Marzipan4090 Dec 18 '20

I agree. I’m just confused as to why Java can’t just use the same code language as bedrock - it could still keep all of the the things that make it Java minecraft-y but just use a different language to make it more optimised. Idk...

2

u/Saintdemon Dec 18 '20

Thats like asking why you can't make a brick house look like a house made of wood.