N
N
Nikita Lazarev2018-09-26 17:36:19
Game development
Nikita Lazarev, 2018-09-26 17:36:19

Which PL to choose for the game server?

Hello, dear programmers, I am faced with the task of filling 100500 printers (crossed out) rewriting the server core from php (which cannot cope with the generation due to the large number of loops with even more if()) into a more or less productive language, but so that I I didn't shoot my feet in a thousand and one ways, like in c++. The game core is designed for 10-20 players, but the problem is that this is minecraft with a huge number of blocks that need to be generated one at a time.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Alexandrov, 2018-09-26
@1dNDN

You can shoot yourself in the foot with a bunch of loops and ifs in absolutely any language.
Optimize current code or write on what you know. As an option, take any custom
one as a basis and finish it , there is a similar one for the pocket version . I read the author's comment. If the problems are in the generation of chunks, then simply generate the whole world in advance at once, and simply slip the players ready-made chunks loaded from the database or files. Once upon a time, they did exactly that on their server, after a wipe in a couple of hours they generated the whole world again, limiting it to the radius of the world.

G
GavriKos, 2018-09-26
@GavriKos

Rewrite to the one that you are good at.
In general, if you stuff the same number of cycles and ifs, then no one can cope. The problem is either in the implementation of the algorithm, or in the algorithm itself. And in Jap - last.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question