SphereCommunity
Experience lag spikes - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Experience lag spikes (/Thread-Experience-lag-spikes)



Experience lag spikes - Rizz - 04-22-2015 01:28 AM

I am having lag spikes and I am searching the reason and I don't want exclude anything.

PHP Code:
///////////////////////////////////////////////////////////////
//////// Server Mechanics
///////////////////////////////////////////////////////////////
// Experimental flags
// Flags for options that affect server behaviour and which might affect compatibility
// See the revisions.txt file for more details on this
// EF_DiagonalWalkCheck         = 00000001
// EF_New_Triggers              = 00000008
// EF_Intrinsic_Locals          = 00000020
// EF_Item_Strict_Comparison    = 00000040
// EF_NewPositionChecks         = 00000080 // Do not set while server is running !!!
// EF_WalkCheck                 = 00000100
// EF_AllowTelnetPacketFilter   = 00000200 // Enables packet filtering for telnet connections as well
// EF_Script_Profiler           = 00000400
// EF_Size_Optimise             = 00000800
// EF_Minimize_Triggers         = 00001000 // Minimize trigger calls (use only 0.51 triggers)
// EF_DamageTools               = 00002000 // damage tools (and fire @damage on them) while mining or lumberjacking
// EF_PetSlots                    = 00004000 // INCOMPLETE YET! DO NOT USE until this warning is removed!
// EF_UsePingServer             = 00008000 // Enable the experimental Ping Server (for showing pings on the server list, uses UDP port 12000)
// EF_NPCAct_Triggers           = 00010000 // Enable @NPCSpecialAction and @NPCAction triggers (mutual exclusive with EF_Minimize_Triggers)
// EF_FixCanSeeInClosedConts    = 00020000 // Change CANSEE to return 0 for items inside containers that a client hasn't opened
// EF_NetworkOutThread          = 00800000 // Send network data in a separate thread
// EF_Specific                  = 01000000 // Specific behaviour, not completly tested
//Experimental=01|08|040|0800|010000
Experimental=01|08|040|0800|010000|0800000

// Use asynchronous data sends (changing this setting at runtime may produce unexpected behaviour)
//  0 = Off
//  1 = On
//  2 = On for 4.0.0+ game clients only
UseAsyncNetwork=0


// Prioritise outgoing packets (provides a smoother experience in crowded areas)
UsePacketPriority=1

// Enables an additional buffer for outgoing data.
UseExtraBuffer=1


// Number of network threads. Clients are distributed evenly amongst each thread. Set to 0 to not
// use a separate networking thread.
NetworkThreads=0    //1

// If network threads are used, this controls the priority they are assigned.
//  0   = Idle
//  1   = Low
//  2   = Normal
//  3   = High
//  4   = Highest
//  5   = Real-time
//  255 = Automatic (recommended)
NetworkThreadPriority=255 

Do you think that some of my options may cause lag spikes?


RE: Experience lag spikes - Sharlenwar - 04-22-2015 02:25 AM

Do you host your server on an actual machine, or are you using a host of some sort?


RE: Experience lag spikes - darksun84 - 04-22-2015 02:55 AM

In recent sphere.ini PacketPriority is set to 0 by default.


RE: Experience lag spikes - Rizz - 04-22-2015 03:41 AM

(04-22-2015 02:25 AM)Sharlenwar Wrote:  Do you host your server on an actual machine, or are you using a host of some sort?


The machine has 8cores and 32gb or ram, there are no caps on the usage.
I cannot remember extacly which cpu model is, waiting for the host answer.


RE: Experience lag spikes - Sharlenwar - 04-22-2015 05:04 AM

Rizz, is your connection to the host a good quality one? In the same country as you live?


RE: Experience lag spikes - Rizz - 04-22-2015 05:33 AM

I have some problem with my internet but this is a report from players, not from me.
The host should be in france if i am not going wrong.


RE: Experience lag spikes - Sharlenwar - 04-22-2015 05:49 AM

Reason I ask these questions, is I run a Sphereserver from a server machine in my own home. So my connection to the server is top notch, as it is local within my network. So to troubleshoot someone having lag issues for myself would be fairly simple. On your hand, it depends where these players are trying to log in from. If they are all from your country trying to connect to a server in France, then there could be potential latency issues. This doesn't resolve your issue unfortunately, but I'm trying to see where potentially your problem could be. The only other thing I can think of, is do you have any intensive scripts that run often which could potentially cause issues, but this is probably not the case for you.


RE: Experience lag spikes - Extreme - 04-22-2015 06:06 AM

Check the spheresvr.exe cpu usage... When my sphere is running over 50% it lags ://