Game delay because of too much calculations

08/08/2019 12:08 nexusadmin#1
Hello everyone,

I've searched a lot about this, but haven't got an answer.

The problem is that metin2 takes a lots of calculation once someone upgrades a stat point, uses a skill or anything like this.

These calculations results in some delay like 1-3 seconds which pretty bad in PvP-s.

Do someone know about there are any fix available already? :(

Kind regards,
nexus
08/08/2019 13:39 Rainer Wahnsinn#2
Hi,
you can simply decrease this delay by opening UserInterface\PythonNetworkStreamPhaseGame.cpp
and change the constant MAX_RECV_COUNT to a higher value.

best regards
08/08/2019 15:20 nexusadmin#3
Quote:
Originally Posted by Rainer Wahnsinn View Post
Hi,
you can simply decrease this delay by opening UserInterface\PythonNetworkStreamPhaseGame.cpp
and change the constant MAX_RECV_COUNT to a higher value.

best regards

Thank you man! I tought the root cause of problem begins in the server side source. But your suggestion solved it. :)
08/16/2019 12:05 uki0008#4
Quote:
Originally Posted by Rainer Wahnsinn View Post
Hi,
you can simply decrease this delay by opening UserInterface\PythonNetworkStreamPhaseGame.cpp
and change the constant MAX_RECV_COUNT to a higher value.

best regards

And what is the safe value? I think YMIR did not accidentally say that. Does this have any negative impact on performance? Server load?
08/16/2019 12:39 Rainer Wahnsinn#5
I'm using 16 as value but I wouldn't go higher than 32,
as there is no difference about performance.

It can't have any negative impact on server performance,
since this constant describes how many packets at a time can be processed on client-side.
08/16/2019 15:09 uki0008#6
Ok, thanks for answer.