ID:273617
Oct 16 2010, 9:40 pm
|
|
Problem description:Recently my server that can handle 50 people with no lag suddenly started lagging and using more CPU and the newest update i think was medals. Medals wouldny cause any lag the game only checks for medals after the end of a match or when you do certain specific ones like the one you get for entering training mode | |
#1 Oct 16 2010, 10:48 pm
|
|
What game is it?
| |
#3 Oct 17 2010, 12:52 am
|
|
Profile the game, analyse the bottleneck, then provide the relevant code in order for people to help you.
| |
#4 Oct 17 2010, 6:34 am
|
|
Inferno L Flames wrote:
Problem description:Recently my server that can handle 50 people with no lag suddenly started lagging and using more CPU and the newest update i think was medals. Medals wouldny cause any lag the game only checks for medals after the end of a match or when you do certain specific ones like the one you get for entering training mode The reference entries for both GetMedal and SetMedal state that they contact the BYOND hub and that this process takes a few moments to complete, which halts the execution of code until the BYOND server responds. Without any further information, I suspect you have not spawned the calls to these procs to avoid this. | |
I did it but apparently the lag got worse
heres one medal code
| ||
Code:One example of my code that gives you a medal
Problem description:My game is on a shell server and was able to handle 50 people with no lag suddenly it started getting like a lot of lag spikes and the only recent update i made was medals i made a topic before and they told me to add spawns and i did and the lag just got worse | ||
My comment still stands, profile the actual game world and show the relevant code of the bottlenecks.
| |