Raised This Month: $ Target: $400
 0% 

Huge lag spike on new round


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 09-23-2019 , 12:38   Huge lag spike on new round
Reply With Quote #1

I don't know why but I got a huge lag on round start.
When I remove the CustomForward, there ain't any lag at all. Did I do something wrong?

On LAN Server, the ping went from 0 to 1-2 but in HLDS, it went from ~30 to 120+ for few seconds.

PHP Code:
public fw_Player_Spawn(id)
{
    if(!
g_AllowInfection)
        
CurePlayer(id0)
}

public 
CurePlayer(victimattacker)
{
    
ExecuteForward(g_Forwards[FW_USER_CURE_PRE], g_ForwardResultvictimattacker)
    if(
g_ForwardResult >= PLUGIN_HANDLED)
        return

    if(!
is_user_alive(victim))
        return    

    
UnSet_BitVar(g_IsZombievictim)

    
ExecuteForward(g_Forwards[FW_USER_CURE_POST], g_ForwardResultvictimattacker)

Edit: Even when the CustomForward hasn't been used in any plugin, the lag still occurred
Edit2: File attached.
Attached Files
File Type: sma Get Plugin or Get Source (zz_core_beta.sma - 320 views - 7.6 KB)
__________________
My plugin:

Last edited by Celena Luna; 09-23-2019 at 13:46.
Celena Luna is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode