Portal SAMP
[Ajuda] Long callback execution detected (hang or performance issue) - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Ajuda] Long callback execution detected (hang or performance issue) (/showthread.php?tid=718)



Long callback execution detected (hang or performance issue) - zBL4CK - 02/02/2021

eae galera blz 

bom meu servidor ta desligando e no log ta mostrando varios debugs e o que mais persiste é este:

Código:
[22:54:46] [debug] #0 0008d0e8 in public UpdatePlayerVelocimetro (playerid=0) at C:\Users\USER\Desktop\server\gamemodes\Beckup.pwn:6369
[22:54:46] [debug] Long callback execution detected (hang or performance issue)
[22:54:46] [debug] AMX backtrace:
[22:54:46] [debug] #0 0008d148 in public UpdatePlayerVelocimetro (playerid=0) at C:\Users\USER\Desktop\server\gamemodes\Beckup.pwn:6371
[22:54:46] [debug] Long callback execution detected (hang or performance issue)
[22:54:46] [debug] AMX backtrace:
[22:54:46] [debug] #0 0008d114 in public UpdatePlayerVelocimetro (playerid=0) at C:\Users\USER\Desktop\server\gamemodes\Beckup.pwn:6370
[22:54:46] [debug] Long callback execution detected (hang or performance issue)
[22:54:46] [debug] AMX backtrace:
[22:54:46] [debug] #0 0008d0c8 in public UpdatePlayerVelocimetro (playerid=0) at C:\Users\USER\Desktop\server\gamemodes\Beckup.pwn:6369
[22:54:46] [debug] Long callback execution detected (hang or performance issue)
[22:54:46] [debug] AMX backtrace:
[22:54:46] [debug] #0 0008d110 in public UpdatePlayerVelocimetro (playerid=0) at C:\Users\USER\Desktop\server\gamemodes\Beckup.pwn:6370
[22:54:46] [debug] Long callback execution detected (hang or performance issue)
[22:54:46] [debug] AMX backtrace:
[22:54:46] [debug] #0 0008d16c in public UpdatePlayerVelocimetro (playerid=0) at C:\Users\USER\Desktop\server\gamemodes\Beckup.pwn:6371
[22:54:46] [debug] Long callback execution detected (hang or performance issue)
[22:54:46] [debug] AMX backtrace:
[22:54:46] [debug] #0 0008d12c in public UpdatePlayerVelocimetro (playerid=0) at C:\Users\USER\Desktop\server\gamemodes\Beckup.pwn:6370
[22:54:46] [debug] Long callback execution detected (hang or performance issue)
[22:54:46] [debug] AMX backtrace:
[22:54:46] [debug] #0 0008d150 in public UpdatePlayerVelocimetro (playerid=0) at C:\Users\USER\Desktop\server\gamemodes\Beckup.pwn:6371
[22:54:46] [debug] Long callback execution detected (hang or performance issue)
[22:54:46] [debug] AMX backtrace:
[Imagem: vYUWxQv.png]

tem algo que fiz de errado? ainda nao sei muita coisa de otimização se alguem puder me dar dicas ou me indicar tutoriais de otimização eu agradeço muito.

help meu server fica desligando ;-;


RE: Long callback execution detected (hang or performance issue) - Silva - 02/02/2021

Código PHP:
new playervehicle GetPlayerVehicleID(playerid), string_velo[50];
if(
playervehicle != INVALID_VEHICLE_ID

Tente isso.


RE: Long callback execution detected (hang or performance issue) - zBL4CK - 02/02/2021

(02/02/2021 12:55)Silva Escreveu:
Código PHP:
new playervehicle GetPlayerVehicleID(playerid), string_velo[50];
if(
playervehicle != INVALID_VEHICLE_ID

Tente isso.

ta do mesmo jeito mas o que ta estranho é que no meu pc nn aparece esses debugs porem so na host


RE: Long callback execution detected (hang or performance issue) - zBL4CK - 02/02/2021

help ;-; :,(


RE: Long callback execution detected (hang or performance issue) - Chainksain - 03/02/2021

isso é só um alerta, nada de mais.


RE: Long callback execution detected (hang or performance issue) - willttoonn - 03/02/2021

Como falei no outro tópico:

(03/02/2021 15:26)willttoonn Escreveu: Me informe o seguinte:
- Quantos timers globais você tem e liste o tempo de execução de cada um.
- Você utiliza a função OnPlayerUpdate?
- Quais as configurações de hardware da máquina que hospeda o servidor?