Jump to content

C++ Small Helpful Fix


TyWin

Recommended Posts

Hello, first of all this not a release, it's just 1-5 second work.

Today I found a problem on my server, it was lagging when we were in map in small distance and attacking a lot of monsters.

 

There was like 1-3s delay and it was horrible.

I know a lot of you know about it, dont write it here please.

 

Open:

PythonNetworkStreamPhaseGame.cpp

Search for: 

const DWORD MAX_RECV_COUNT =

You have different value there, I recommend edit it to 32

It will look like this:

const DWORD MAX_RECV_COUNT = 32;

Save it, build it, enjoy.

Result for me: No delay when mount/unmount, no delay when adding new status points etc.

 

  • Not Good 1
  • Love 13
Link to comment
Share on other sites

  • 3 weeks later...
  • 9 months later...
  • Premium

night flight bug GIF

 

SAFE_RECV_BUFSIZE = 1024 * 8

MAX_RECV_COUNT 32  is too much!

You will get kick in some case with specific systems, doesn't matter if your game seems good and speed. If there is a delay like this you have to understand the reason why before of boost. Look for a middle ground kinda *2.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

2 hours ago, WeedHex said:

night flight bug GIF

 

SAFE_RECV_BUFSIZE = 1024 * 8

MAX_RECV_COUNT 32  is too much!

You will get kick in some case with specific systems, doesn't matter if your game seems good and speed. If there is a delay like this you have to understand the reason why before of boost. Look for a middle ground kinda *2.

nope, not too much.

 

if server source have 'spam' fixes, you dont need this(of course if you don't use using pentium 4 cpu and 5 mbit ethernet speed)

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 2
  • Good 1
Link to comment
Share on other sites

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.