About CPU Usage
#7

Hm I couldnt find anything suspicious in the function. A thing you should really optimize is the giant amount of queries in OnPlayerUpdateEx. You can simply reduce it from 30+ queries to just one like this: "UPDATE players SET PlayerLevel=%d, AdminLevel=%d, ... WHERE name='%s';"
I dont think this can make your server hang, but depending on how often it is called it can cause a lot of lag.
Reply


Messages In This Thread
About CPU Usage - by Ricop522 - 08.12.2011, 18:26
Re: About CPU Usage - by Mauzen - 08.12.2011, 18:46
Re: About CPU Usage - by jonrb - 08.12.2011, 18:46
Re: About CPU Usage - by Ricop522 - 08.12.2011, 18:49
Re: About CPU Usage - by Mauzen - 08.12.2011, 20:08
Re: About CPU Usage - by Ricop522 - 08.12.2011, 22:07
Re: About CPU Usage - by Mauzen - 09.12.2011, 09:41
Re: About CPU Usage - by Ricop522 - 09.12.2011, 12:29

Forum Jump:


Users browsing this thread: 5 Guest(s)