Performance, and maybe attack ddos problem?

Сообщения
4
Реакции
-2
Ошибка
L 04/22/2024 - 21:52:56: [jail_zwierzaki.amxx] performance issue. Function AddToFullPack_Post executed more than 1.1ms.
L 04/22/2024 - 21:52:56: [jail_zwierzaki.amxx] performance issue. Function AddToFullPack_Post executed more than 6.2ms.
L 04/22/2024 - 21:52:56: [jail_zwierzaki.amxx] performance issue. Function AddToFullPack_Post executed more than 3.3ms.
ОС
Linux
Amx Mod X
AMX Mod X 1.10.0.5467 (http://www.amxmodx.org)
Authors:
David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Jan 21 2023 20:27:33
Built from: https://github.com/alliedmodders/amxmodx/commit/27f451a
Build ID: 5467:27f451a
Core mode: JIT+ASM32
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.13.0.788-dev
Build date: 07:36:33 Jul 12 2023 (3378)
Build from: https://github.com/dreamstalker/rehlds/commit/f955b07
ReGamedll
ReGameDLL version: 5.26.0.668-dev
Build date: 19:02:48 Dec 31 2023
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/d3c0ec8
Версия Metamod
Metamod-r v1.3.0.138, API (5:13)
Metamod-r build: 11:50:32 Nov 28 2023
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/5179c25
Список метамодулей
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] NetBufExtender RUN - nbex.so v1.0 ini ANY Never
[ 2] AMX Mod X RUN - amxmodx_mm_i386.so v1.10.0.5467 ini Start ANY
[ 3] SafeNameAndChat RUN - SafeNameAndChat.so v1.0 ini ANY ANY
[ 4] VoiceTranscoder RUN - VoiceTranscoder.so v2020RC2 ini ANY ANY
[ 5] Reunion RUN - reunion_mm_i386.so v0.1.0.92c ini Start Never
[ 6] Ultimate Unprecacher RUN - unprecacher_mm_i386.so vBeta 2.5.3 ini Chlvl Chlvl
[ 7] Print Center Fix RUN - printcenterfix_mm_i386.so v1.0.1 ini ANY Never
[ 8] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 9] MySQL RUN - mysql_amxx_i386.so v1.10.0.5467 pl2 ANY ANY
[10] SQLite RUN - sqlite_amxx_i386.so v1.10.0.5467 pl2 ANY ANY
[11] hackdetector RUN - hackdetector_amxx_i386.so v0.15.328.lite pl2 ANY ANY
[12] ReAPI RUN - reapi_amxx_i386.so v5.24.0.300-dev pl2 ANY Never
[13] gRIP RUN - grip_amxx_i386.so v0.1.5 Beta pl2 ANY ANY
[14] Fun RUN - fun_amxx_i386.so v1.10.0.5467 pl2 ANY ANY
[15] Engine RUN - engine_amxx_i386.so v1.10.0.5467 pl2 ANY ANY
[16] FakeMeta RUN - fakemeta_amxx_i386.so v1.10.0.5467 pl2 ANY ANY
[17] CStrike RUN - cstrike_amxx_i386.so v1.10.0.5467 pl2 ANY ANY
[18] CSX RUN - csx_amxx_i386.so v1.10.0.5467 pl2 ANY ANY
[19] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.10.0.5467 pl2 ANY ANY
Список плагинов
no need
Автор плагина
no need
Версия плагина
no need
Исходный код
public plugin_init()
{
register_forward(FM_AddToFullPack, "AddToFullPack_Post", 1);
}


public AddToFullPack_Post(es,e,ent,host,hostflags,player,pSet)
{
if(player)
return FMRES_IGNORED;

if(!is_user_connected(pev(ent,pev_owner)))
return FMRES_IGNORED;

if(ent == pet[pev(ent,pev_owner)])
{
if(get_user_settings(host, 4))
{
set_es(es,ES_Effects,EF_NODRAW)
}
}
return FMRES_IGNORED;
}

public _set_user_settings(id, setting, bool:wartosc)
{
if(!wartosc)
pSettings[id] &= ~(1<<setting);
else
pSettings[id] |= (1<<setting);
}

public _get_user_settings(id, setting)
{
if(pSettings[id] & (1<<setting))
return true
else
return false;
}
I have a performance issue in my plugins and players on my server, have high ping, when there is a lot of players.

stats, when this happend:
CPU In Out Uptime Users FPS Players
99.60 144.74 258.92 1153 402 57.35 19

stats, when its normal ping:
CPU In Out Uptime Users FPS Players
57.00 113.95 212.32 1190 419 247.51 15


server startup:

hlds_run -autorestart -game cstrike +maxplayers 20 +ip <ip> +port 27015 -pingboost 3 +sys_ticrate 1000 +exec server.cfg +map jail_rose_mr -num_edicts 2047
 
Последнее редактирование:
Сообщения
112
Реакции
14
Помог
1 раз(а)
Заполняя каждое поле, внимательно читайте подсказки под ними. Игнорирование данных действий может повлечь закрытие Вашей темы и тогда Вам придется снова создавать тему согласно требованиям, которые Вы проигнорировали.
 
Сообщения
112
Реакции
14
Помог
1 раз(а)
black001s, Значит эту тему закроют. А Вы создайте новую.
 
Сообщения
50
Реакции
9
Помог
1 раз(а)
Try disable "netbufextender"
rehlds doesn't need "netbufextender"
 
Сообщения
16
Реакции
0
Помог
2 раз(а)
Drop full code pls.. Nothing a not understood.
2 Июн 2024
You can't joke around with this function, because it's very much in operation.
At the very least make the code like this, should be slightly will less ms.


C++:
public plugin_init()
    register_forward(FM_AddToFullPack, "@FM_AddToFullPack", 1);

// post
@FM_AddToFullPack(es, e, ent, host, hostflags, player, pSet)
{
    if (player)
        return FMRES_IGNORED;
    
    new owner = pev(ent, pev_owner)
    
    if (!is_user_connected(owner) || ent != pet[owner])
        return FMRES_IGNORED;
    
    if (get_user_settings(host, 4))
        set_es(es, ES_Effects, EF_NODRAW)
    
    return FMRES_IGNORED;
}
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу