100 % CPU
#1

Hi,
I have problem with CPU (up to 100% and server lag) it's happens randomly (sometimes 3 times consecutive, sometimes never..) at player connect
i checked infinity cycles. Last script is invoked OnPlayerConnect but gamemode not..

Код HTML:
public OnPlayerConnect(playerid)
{
	printf("[ GM ] %s -> Connecting",Player(playerid));
        return 1;
}
Please help, thanks.
Reply
#2

Easy solution:
Remove it.
Why does it matter if they're logged to the console or not?
You can just log all the connecting players to a .txt file instead.
Reply
#3

What exactly are you showing here? Are we supposed to trace your CPU usage from this printf?
Run the profiler + crashdetect plugin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)