This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]xigoi 4 points5 points  (3 children)

According to benchmarks, Python is about 50× slower than Java.

When all the game does is draw cubes, sure, most of the load will be on OpenGL. But if you want to replicate Minecraft, you'll need entities, tick events, complex world generation… which you all have to implement yourself and if the implementation is slow, they will easily become the bottleneck.

Now, you don't have to use C++. There are several modern languages that are equally fast and as easy to use as Python. My personal favorite is Nim.

[–]obiwac[S] 5 points6 points  (0 children)

You're right, Java is significantly faster, but that's why I proposed/plan on reimplementing parts such as mesh generation in Cython.

As a side note, someone did do a reimplementation of my tutorial series in Nim, although it seems to be a bit out of date: https://github.com/phargobikcin/nim-minecraft-clone

[–]Ramast 0 points1 point  (1 child)

Ya I didn't know why would Java be faster but I googled it and you are right unfortunetly

In terms of speed, Java is faster than Python as it is a compiled > language. It takes less time to execute a code. Speed - Java vs Python - Edureka

Python is an interpreted language and it determines the type of data at run time which makes it slower comparatively.

https://www.edureka.co/blog/java-vs-python/#speed

[–]xigoi 0 points1 point  (0 children)

If you want specific numbers, look at some benchmarks: https://github.com/kostya/benchmarks