Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 22:04

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help] Scatter causing lag

Discussion on [Help] Scatter causing lag within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
littlechris95's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 150
Received Thanks: 11
Question [Help] Scatter causing lag

I put my project to run on a dedicated server just for testing and called Some friends of mine, over the course of the tests I find that somehow when they went hunting with his archers, while they used the scatter in monsters, your ping was increased and reached a 18k.

What could be wrong?
littlechris95 is offline  
Old 07/08/2014, 02:11   #2
 
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
Likely because your attack calculations for X amount of mobs at a time is slowing your server down alot.
Aceking is offline  
Old 07/08/2014, 03:52   #3


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,444
Received Thanks: 1,176
Had a similar issue with COPS v6 because the magic handling was ****. You'll need to rework it. Try to find which part is slowing down the whole calculation.
CptSky is offline  
Old 07/08/2014, 04:27   #4
 
littlechris95's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 150
Received Thanks: 11
Quote:
Originally Posted by Aceking View Post
Likely because your attack calculations for X amount of mobs at a time is slowing your server down alot.
I confess I had a lot of mobs, but I reduced and even with a small amount ping increases.
littlechris95 is offline  
Old 07/08/2014, 12:52   #5
 
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
Quote:
Originally Posted by littlechris95 View Post
I confess I had a lot of mobs, but I reduced and even with a small amount ping increases.
I had similar issues where any ranged attack (hercules, scatter etc) would increase the ping from 100 to about 1000.
Traced it back to the kill methods for mobs and realized it was extremely inefficient, after re-working it, ping didn't change.

So if you follow your code from attack to kill, you will eventually find the problem. But it is in there somewhere.
Aceking is offline  
Old 07/08/2014, 17:27   #6
 
littlechris95's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 150
Received Thanks: 11
Quote:
Originally Posted by Aceking View Post
I had similar issues where any ranged attack (hercules, scatter etc) would increase the ping from 100 to about 1000.
Traced it back to the kill methods for mobs and realized it was extremely inefficient, after re-working it, ping didn't change.

So if you follow your code from attack to kill, you will eventually find the problem. But it is in there somewhere.

What is the difference in the calculations, a Melee attack for a ranged attack? I have this doubt ... use the same calculations as used in Melee attacks to Ranged attacks.
littlechris95 is offline  
Old 07/08/2014, 23:02   #7
 
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
Quote:
Originally Posted by littlechris95 View Post
What is the difference in the calculations, a Melee attack for a ranged attack? I have this doubt ... use the same calculations as used in Melee attacks to Ranged attacks.
The damage algorithm shouldn't be the problem, unless you have some ungodly calculation.
Im willing to bet the problem is in your kill method.

What you should do is test scatter where it doesn't kill a mob, and test where it does kill the mobs.
If the lag spikes only when you kill a mob, then the problem is inside your kill functions.
If it spikes regardless, then the problem is somewhere in the attack section.
Or it could be in both and you have double the problems.

One way to narrow it down would be to add some timing mechanism in several locations recording the time it takes to perform that function.
Stopwatches would likely work for this as you don't need nano seconds.

Place a bunch of stop watches and time different methods and output it the console or to your character.
See where the time is rather large, my guess is you will have 100+ ms intervals.

If your code is efficient, the entire process should be 0ms, or darn close depending on server load.
Aceking is offline  
Old 07/09/2014, 07:22   #8
 
littlechris95's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 150
Received Thanks: 11
Problem solved!

Thank you very much ;D

#Request Close
littlechris95 is offline  
Closed Thread


Similar Threads Similar Threads
What do you think is causing the problem?
07/06/2012 - CO2 Private Server - 7 Replies
http://oi45.tinypic.com/2r23sat.jpg Well, when I click on Details (on the chatbox), instead of showing my friends details, it shows mine. Any idea how will I fix it? -If this was answered before pardon me, someone could gimme the link to it?
[HELP] Some items causing crash
01/12/2012 - SRO Private Server - 3 Replies
Hay all, where can i find the files that responsible for what the character should look like when wearing a certain item? i have a small problem that some of the items when the charatcer wear it , it crash, and i have to remove this item from the character using the SMC to be fix it. so i know it have something to do with the clients files "Media , DATA" but need some guidness where to start Cheeers.
Hack causing error *-*
06/10/2011 - S4 League - 5 Replies
Whenever I try to play s4 league w/ no hacks.. it works fine. But with hacks.. I get this error every time I start the game. Please help? I would also appreciate if you could make your replies in English.. or translate them somehow. Here's a screenshot:
What's causing the crashes in ZsZc ?
04/10/2011 - SRO Private Server - 0 Replies
I experienced constant crashes after teleporting to Hotan, and often crashes while you're just grinding where theres a lot of people. I tried fixing the problem by reinstalling etc, but the problem dosent seem to be on my side.I often handgrind with couple of friends, and sometimes all 3 of us crashed at the same moment when someone passes near us. Could it be that specific pets are very unstable ? Or people have a way to purposely crash other players ?
Causing Disconnect
04/10/2006 - Conquer Online 2 - 11 Replies
a friend of mine went AFK in Adventure Zone and is running out of dura. we dashed him to a semi-safe place, but want to make sure he's safe by disconnecting him. Can anyone tell me how to do this?



All times are GMT +1. The time now is 22:04.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.