Posts: 709
Threads: 63
Joined: Feb 2009
Reputation:
0
I'm using OnPlayerUpdate, and the server is using way too much CPU because of it. What can i replace it with? I would need some explanations.
Thanks,
- S
Posts: 6,340
Threads: 58
Joined: May 2009
Reputation:
0
Depends for what do you want to use it? You could use timer (one second timer) if you don't need to execute the code so fast.
Posts: 6,340
Threads: 58
Joined: May 2009
Reputation:
0
Then read it again.
You're using GF/GF edit which had the name "OnPlayerUpdate" before the 0.2 came out with the native OnPlayerUpdate.
Change this OnPlayerUpdate to something like OnPlayerUpdateEx.
Posts: 709
Threads: 63
Joined: Feb 2009
Reputation:
0
Just replace
OnPlayerUpdate
With
OnPlayerUpdateEx
That sounds too simple
Posts: 6,340
Threads: 58
Joined: May 2009
Reputation:
0
Not just the callback name, but every GF's OnPlayerUpdate.
Posts: 709
Threads: 63
Joined: Feb 2009
Reputation:
0
Don't you have to do anything more than change all the OnPlayerUpdate to OnPlayerUpdateEx?
I mean, it must involve something more than that?
Posts: 2,862
Threads: 11
Joined: Mar 2008
Reputation:
0
I don't know why would you save stats anywhere else than under OnPlayerDisconnect anyway ..